Skip to content
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

Html tags in input #15

Open
plapeyre opened this issue Sep 6, 2020 · 2 comments
Open

Html tags in input #15

plapeyre opened this issue Sep 6, 2020 · 2 comments
Labels
enhancement New feature or request

Comments

@plapeyre
Copy link

plapeyre commented Sep 6, 2020

You can submit html tags in the input (eg: font-style:bold) to make the text to display bold and it displays but when you revisit the edit page the html tags are stripped and they have to be added again otherwise the changes made dont stick. I've had to add custom css to override this as the plugin strips the original css to the price and makes it plain default text.

@jrick1229 jrick1229 added the enhancement New feature or request label Sep 15, 2020
@jrick1229
Copy link
Contributor

HTML is not currently supported @aliqua-au - but feel free to submit a PR for these types of changes if you're knowledgeable in PHP.

@CodeShakingSheep
Copy link

You can submit html tags in the input (eg: font-style:bold) to make the text to display bold and it displays but when you revisit the edit page the html tags are stripped and they have to be added again otherwise the changes made dont stick. I've had to add custom css to override this as the plugin strips the original css to the price and makes it plain default text.

I've been running into the exact same issue. I had something like <del>regular price</del> discounted price. When changing something in the product (e.g. I just changed the product image), the HTML tags which have been working previously are being removed.

I think, either the field shouldn't support HTML tags at all or consistently support them (I prefer the 2nd option). Otherwise it's confusing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants