https://github.com/paulhodel/jtools/blob/master/src/editor.j...
You can do this safer with:
https://developer.mozilla.org/en-US/docs/Web/API/DOMParser
an then just removing what you don't want to have via querySelectorAll() and remove().
You can do this safer with:
https://developer.mozilla.org/en-US/docs/Web/API/DOMParser
an then just removing what you don't want to have via querySelectorAll() and remove().