unstyler.js

Clean up ugly word processor HTML

Download (0.2.2)

So, that point in your project comes, and you need to handle copy & paste from Microsoft Word. At first, it looks great... and then you look at the HTML!

This library is an alternative to using a mature WYSIWYG editor that incorporates "Paste from Word".

Demo

Ugly HTML

Clean HTML

    

Rendered HTML

Dependencies

None. :-)

JQuery is used on this page but only to get the content to manipulate.

How to Use

Take a look at the README

Licence

MIT

Fork me on GitHub