Class: Nanoc::Toolbox::Filters::HtmlTidy
- Inherits:
-
Filter
- Object
- Filter
- Nanoc::Toolbox::Filters::HtmlTidy
- Defined in:
- lib/nanoc/toolbox/filters/html_tidy.rb
Overview
NANOC Filter for html output tidy
Instance Method Summary collapse
-
#run(content, params = {}) ⇒ String
Tidy the HTML output Runs the content through Nokogiry document parser, and request the html output, which is tidied by default.
Instance Method Details
#run(content, params = {}) ⇒ String
Tidy the HTML output Runs the content through Nokogiry document parser, and request the html output, which is tidied by default.
16 17 18 19 |
# File 'lib/nanoc/toolbox/filters/html_tidy.rb', line 16 def run(content, params = {}) require 'nokogiri' Nokogiri::HTML::Document.parse(content).to_html end |