Microsoft Word - Clean HTML

What happens when you save something written in Microsoft Word to Web page - Filtered? You end up with html code that is not valid. In order for it to be valid, all attributes in tags are enclosed with qoutes and all unnecessary tags deleted. This script generates valid xhtml, feel free to test it at W3C Validator, and please notify me if you get any errors. Below is the link to my PHP solution…

Download the source code here:
MSWord-CleanUp

Leave a Reply

You must be logged in to post a comment.