65.9K
CodeProject is changing. Read more.
Home

Html Cleaner

starIconstarIcon
emptyStarIcon
starIcon
emptyStarIconemptyStarIcon

2.48/5 (6 votes)

Aug 26, 2004

viewsIcon

41391

downloadIcon

678

Not really an article, just a simple tool to clean html

Introduction

Cleaning html code by hand is a pain in the ...! But once in a while you just have to do it (well I do anyway). Unless you have a tool to do it for you. When finding the Html Agility Pack my prayers were answered. I quickly found the code for cleaning html code with this library (with a little help from google) at this place. I put it all in a Windows application which allows me to quickly access the function whenever I need it. Nothing fancy in the application (it was pretty much cut/paste from the two sources I have linked to, and then the simple interface.) No error checking... Nothing...!

Usage

Insert to html to be cleaned into the upper box. Modify the tags and the attributes to be deleted. Press the clean button. Copy the modified html code (the second box). That's about it...

History

  • 24-08-2004: Initial development. The project were made in 30 minutes, and saved me about an hours work.