Storefront API returning incorrect spaces within Page Body

New Member
2 0 0

Fetching the 'body' from pages using the Storefront API, I was having issues with text not wrapping from the resultant HTML. My framework (Svelte in this case) is converting all the spaces to '&nsbsp;', which of course prevents the wrapping.

Checking the spaces using this tool:, shows Shopify is returning U+00A0 : NO-BREAK SPACE [NBSP] for all of the spaces in my paragraph text, rather than the U+0020 SPACE it should be. I can get around this by removing the spaces in my Javascript and replacing them with standard spaces, but it shouldn't be necessary and will be adding unnecessary overhead.

Not really a question, but a bug report for the devs.

Replies 0 (0)