I want to open edit an HTML file with ProseMirror, but I don’t want to load the html into the DOM for security reasons. Preferably ProseMirror would parse the HTML text into its JSON representation and thus only render secure content.
Is this possible?
I’m seeing that
DOMParser only parses HTML nodes.
It looks like
markdown-it to parse directly into the JSON format… So I guess I should mention that I’m just using the
prosemirror-example-setup. Perhaps this doesn’t exist yet?