SPAN removed

Hi!

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

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

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