How to parse empty tags

Hello,

I’m trying to parse this html code in prosemirror:

<span>&nbsp; &nbsp; &nbsp;</span>

But prosemirror ignores it completly, i think it’s considered to be an empty tag.

What can I do ? thanks

What kind of result were you hoping for? A text node?

I need the spaces to be parsed in the editor and not to be lost.

There’s the preserveWhitespace option to the parser. If that’s not set, it’ll collapse whitespace.