How To Tidy Up Html Code Based On Javascript
I am writing a JavaScript function which can tidy up HTML code (JavaScript and CSS code tidying is not necessary at the moment). Here is my code. And check it on http://jsfiddle.ne
Solution 1:
If speed is not an issue, you could run a jQuery parser (alternatively Cheerio with Node.js) on your generated HTML string, using the $(String).html() method as explained here.
Post a Comment for "How To Tidy Up Html Code Based On Javascript"