Hi ![]()
Just use a JSON filter and then replace the string with the correct view. Example:
{%- liquid
echo "10 bar" | json | replace: '\u0026nbsp;', ' ' | replace: '\u003c', '<' | replace: '\u003e', '>'
-%}
Issue: Shopify’s product description editor automatically removes non-breaking space entities ( ) when users switch between code and preview modes, even though these are intentionally placed (e.g., between numbers and units like “10 bar”).
Explanations provided:
Suggested workarounds:
white-space: nowrap; for layout control| json | replace filters)Status: The original poster reported the issue resolved temporarily on its own, though another user later requested clarification on implementing the solutions, indicating the problem persists for some users.
Hi ![]()
Just use a JSON filter and then replace the string with the correct view. Example:
{%- liquid
echo "10 bar" | json | replace: '\u0026nbsp;', ' ' | replace: '\u003c', '<' | replace: '\u003e', '>'
-%}