Sublime Forum

Automate correcting badly coded HTML?

#1

Before I start going through this by hand, I just wanted to find out if there’s a way to automate this?

I’m working with a whole bunch of documents that are coded in horribly out of date ways. With <br> instead of paragraphs, <font> tags on every paragraph, list item, etc (even though they all provide the same styling for the most part). headers are denoted as <p><font size="2" face="Arial, Verdana, Times New Roman" align="left"> <strong>header</strong></font></p>

Now i know some rigorous finding and replacing could get me partway toward solving this. But I’m not very good with the RegExp, and I wonder if there’s any tools that could help me redecorate (not just tidy) this HTML ?

Thanks a lot!

0 Likes