Product description html editor changes " to "

The quotation mark is reserved by html for specific uses, and " has been the standard to use when wanting quotation marks in text FOREVER. My store integrates with a LOT of 3rd party systems, plus I do a LOT of exporting and importing. " helps keep the description from getting scrambled. This is NOT normal behavior for an html editor. How can I make it stop doing this?

Hey @ksech

It’s because the description box is a rich text editor, so when you save, it rewrites the HTML and turns " back into a normal ". That’s actually valid in HTML body text, so the editor sees no reason to keep the entity, and there’s no setting to stop it, it’ll do this every time you save through the editor.

The fix is to set those descriptions through the Admin API (descriptionHtml in GraphQL or body_html in REST) or your import tool instead, since those save the raw HTML exactly as you send it, " and all. Just don’t reopen and save that product in the admin editor afterward, because that’s the step that converts it back. Since you’re already doing lots of imports and integrations, push the descriptions through the API or import flow and the " will stick.


Hope that helps! If it did, a Like and Marking it as Solution goes a long way and helps others find the fix faster too.

Best,
Moeed

Thank you for the reply. But I thought it was a rich text editor and an html editor, otherwise what’s the point of this button: </> ? Also, it doesn’t mess with other codes, like &amp; - best I can tell it's just the quotation marks it messes with.

Being able to save this via the API or import doesn’t help. There are several staff that may open the editor to change a price or add a tag, etc. and you’re saying that would cause it to convert the html again. I’ve worked with several hosted carts over the years, and this is the first one that actually changed my html that I entered into the html editor. Very frustrating!