When I “browse the source” using different browsers, my web pages always seem to have a lot of spaces and are poorly formatted. I am developing a Java web application using JSP.
How can I make sure that when I 'look at the source' I see beautifully formatted HTML?
Edit:
When I say formatting, I usually mean:
I get things like this:
<div> <p>some text</p> </div>
when I want:
In my JSP (including use), everything is formatted nicely.
View Source , , , , HTML , .
. HTML , HTML. Chrome Internet Explorer F12 , , F12 Firebug Firefox, .
. /HTML-, , - , . , script / .
html Java webapp Servlet Filter. , , , , - , JTidyFilter.
, .
, Chrome " " javascript. HTML, . , .
- - Chrome