Skip to content

Latest commit

 

History

History
24 lines (16 loc) · 378 Bytes

README.rdoc

File metadata and controls

24 lines (16 loc) · 378 Bytes

Ruby wrapper for HTML Compressor

Installation:

gem install html_compressor

Usage

require 'html_compressor'

compressor = HtmlCompressor::HtmlCompressor.new
compressor.compress(<<-END_HTML)
<html>     
 <head>
 </head>
 <body>
 fdgdfgf

 </body>
</html>  
END_HTML

Output “<html><head></head><body>fdgdfgf</body></html>”