Access a community of over 900,000 Shopify Merchants and Partners and engage in meaningful conversations with your peers.
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: https://babelstone.co.uk/Unicode/whatisit.html, 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.
User | RANK |
---|---|
2 | |
1 | |
1 | |
1 | |
1 |