Are there any JS scripts for formatting HTML code (i.e. tabs and everything else)? Example: I get the following markup through innerHTML:
<ul><li>1</li><li>2</li></ul>
And I want to make it readable (that is, indent):
<ul> <li>1</li> <li>2</li> </ul>
Yes, I forgot to say that I just need to output the HTML code formatted.