4

Is there a javascript library that can make bad html readable?

For example:

<div><span></span></div>

into

<div>
  <span></span>
</div>
Mark
  • 32,293
  • 33
  • 107
  • 137

2 Answers2

0

If you use Firebug on FireFox, HTML is all laid out nicely in the HTML pane.

Depends if you want to reasd it, or save it in a readable form (which Firebug won't)

Hogsmill
  • 1,574
  • 13
  • 21
-2

If you just want to ident your code, use your favorite ide. If it is eclipse, the shortcut is something like ctrl + shift + f

eb.iliass
  • 79
  • 1
  • 4