I am looking for a jQuery plugin (for a text editor) that will work to tidy up HTML code. I.e., if I have a code sample like this:
<div><div>This is test code</div><ul><li>More Test Code HERE!</li><li>Even more</li></ul></div>
I would like the plugin to output something more like this:
<div>
<div>
This is test code
</div>
<ul>
<li>More Test Code HERE!</li>
<li>Even more</li>
</ul>
</div>
Is there something like that available?