Javascript pretty html

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

For instance:

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

in

 <div> <span></span> </div> 
+4
source share
2 answers

If you use Firebug for FireFox, HTML is all well laid out in the HTML field.

Depends on whether to reuse or save in readable form (which Firebug won't)

0
source

If you just want to identify your code, use your favorite ideal. If it's an eclipse, the shortcut is something like ctrl + shift + f

-2
source

Source: https://habr.com/ru/post/1336439/


All Articles