Class HtmlCompressor
java.lang.Object
com.iizix.js.build.compressors.HtmlCompressor
Class that compresses given HTML source by removing comments, extra spaces and line breaks while preserving content within <pre>, <textarea>, <script> and <style> tags.
Blocks that should be additionally preserved could be marked with:<!-- {{{ --
...
<!-- }}} -->
or any number of user defined patterns.
Content inside <script> or <style> tags could be optionally compressed using Yahoo YUI Compressor or Google Closure Compiler libraries.
- Author:
- Sergiy Kovalchuk
Constructor Summary
ConstructorsMethod Summary
Constructor Details
HtmlCompressor
public HtmlCompressor()
Method Details
compress