Skip to content

"Multiple Select" product attributes do not render HTML tags on the storefront view #17100

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
kedarjoyner opened this issue Jul 24, 2018 · 4 comments
Labels
duplicate Issue: Format is valid Gate 1 Passed. Automatic verification of issue format passed

Comments

@kedarjoyner
Copy link

kedarjoyner commented Jul 24, 2018

Preconditions

  1. Fresh install of Magento version 2.2.3
  2. PHP version 7.1.1
  3. MySQL version 5.6.35

Steps to reproduce

  1. Navigate to Stores > Product under the Attributes header.

  2. Set Catalog Input Type for Store Owner to Multiple Select. Make sure product attribute values include html tags. You must add at least two attribute values. Example below:

screen shot 2018-07-24 at 1 57 22 pm

  1. Navigate to Storefront Properties. The following two properties must be set to Yes.

screen shot 2018-07-24 at 2 01 06 pm

  1. Navigate to Stores > Attribute Set under the Attributes header.

  2. Select "Default"

  3. Add your newly created Product Attribute under Product Details. You can see my attribute of support under this group below:

screen shot 2018-07-24 at 2 03 37 pm

  1. Navigate to Catalog > Products and create a new product

  2. Select both of your product attributes:

screen shot 2018-07-24 at 2 09 43 pm

  1. Navigate to the product page within your browser. Your product attributes will be viewable under the More Information tab:

screen shot 2018-07-24 at 2 10 35 pm

Expected result

  1. The expected output would be rendered html tags. If a product attribute value is wrapped in an tag, the editor would expect to see that element as a link.
  2. The editor expects to see this because they have selected Yes under the Allow HTML tags in the storefront within the created Product Attribute (see above screenshot for reference)

Actual result

  1. Html tags are rendered as plain text

screen shot 2018-07-24 at 2 10 35 pm

@magento-engcom-team
Copy link
Contributor

Hi @kedarjoyner. Thank you for your report.
To help us process this issue please make sure that you provided the following information:

  • Summary of the issue
  • Information on your environment
  • Steps to reproduce
  • Expected and actual results

Please make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, please, add a comment to the issue:

@magento-engcom-team give me {$VERSION} instance

where {$VERSION} is version tags (starting from 2.2.0+) or develop branches (2.2-develop +).
For more details, please, review the Magento Contributor Assistant documentation.

@kedarjoyner do you confirm that you was able to reproduce the issue on vanilla Magento instance following steps to reproduce?

  • yes
  • no

@magento-engcom-team magento-engcom-team added the Issue: Format is valid Gate 1 Passed. Automatic verification of issue format passed label Jul 24, 2018
@Karlasa
Copy link
Contributor

Karlasa commented Jul 24, 2018

Seems like duplicate of #15393
fix for it in PR #15687

@kedarjoyner
Copy link
Author

@Karlasa You are correct - sorry. I tried searching keywords for this particular issue, but no related results appeared. I will recommend to the creator of #15393 to make the title more specific so others can more easily find it.

@ghost ghost self-assigned this Jul 25, 2018
@ghost
Copy link

ghost commented Jul 25, 2018

@kedarjoyner, closing as duplicate of #15393.

@ghost ghost closed this as completed Jul 25, 2018
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate Issue: Format is valid Gate 1 Passed. Automatic verification of issue format passed
Projects
None yet
Development

No branches or pull requests

3 participants