KISSY html Minifier
Before:
<div id="name"> <!--测试 comment--> <style type="text/css"> body{color:red}; </style> <script type="text/javascript"> alert('</body>'); </script> <div> <div> test <span> test2 </span> test3 </div> </div> <span> <p> <textarea><div>in textarea</div></textarea> </p> </span> <p> <input type="text" value="xx" /> </p> </div>
fix html by xhtml dtd :
auto paragraph in root:
minify
After: