AtomGraph / LinkedDataHub

The low-code Knowledge Graph application platform. Apache license.
https://atomgraph.github.io/LinkedDataHub/
Apache License 2.0
492 stars 123 forks source link

Fix WYSIWYM XHTML output client-side rather than server-side #192

Open namedgraph opened 4 months ago

namedgraph commented 4 months ago

This involves wrapping the XHTML output into <div xmlns="http://www.w3.org/1999/xhtml"></div> and then canonicalizing the XML. Doing it on the client-side would allow to get rid of 3 request interceptors:

namedgraph commented 4 months ago

There is a Javascript XML c14n library that could be used: https://www.npmjs.com/package/xml-c14n