News for hackers. Stuff that matters.
Re:Slate JS – A customizable framework for building rich tex... by c-smile on Thursday November 15, 2018 @11:43AM (#18460760)
Here is "DOM canibalizer" module from my HTML-NOTEPAD ( https://html-notepad.com ) :

https://github.com/c-smile/sciter-sdk/blob/master/notepad/re...

While it looks pretty simple it cleans MS Word and browser artifacts in pasted markup pretty well.

But I shall admit that such simplicity is possible only with sciter (that html-notepad is based on). E.g. that canonicalizeDOM gets called before the content appears in target document. So all this does not affect undo/redo stack, etc.

There are no comments on this comment yet.