Im doing a project on converting an HTML file into a well formatted version. To make the source code look 'nicer'. Basically I have to take care of indentation and removing redundant tags. Any suggestions of how I might tackle this problem? -Adnan
posted 13 years ago
Read in the file. Parse it looking for specific no-no's Replace those with prettier html Write out the file. Pretty straight forward.
"JavaRanch, where the deer and the Certified play" - David O'Meara