I know there is some word formatting cleanup button in html'are or TinyMCE, but as much as I try it doesn't give thhe results I want. I just want plaint html with just structural formatting - no styling or so.. (well <b> can be left for me - it's one and only styling I need )
I wrote 10 lines with javasript using regexp - and it does the fine job for me:
the essence is
rez = text.replace(/<p.*?>/gi, '<p>');
rez = rez.replace(/<\/?font.*?>/gi, '');
rez = rez.replace(/<\/?span.*?>/gi, '');
You can try m$word-cleanup.html
Do you have the full code and where does it go?