SPAN removed


I’m creating an HTML WYSIWYG editor and I’m having an issue with this HTML code:

        <span class="pin"><i class="fas fa-phone-square" title="Tel"></i></span>
        <span>123 123132</span>

Prosemirror removes the first <span class="pin"> and add a <p> around the second <span>

What I can check for issues like that?

Thank you!

Make sure you actually understand what ProseMirror is. You seem to be trying to use it as an HTML editor, which it really isn’t.

Thank you