Class: BootstrapEmail::Converter::BeautifyHTML
- Defined in:
- lib/bootstrap-email/converters/beautify_html.rb
Instance Attribute Summary
Attributes inherited from Base
Class Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from BootstrapEmail::Converter::Base
Class Method Details
.replace(html) ⇒ Object
4 5 6 7 |
# File 'lib/bootstrap-email/converters/beautify_html.rb', line 4 def self.replace(html) # Pretty print format the HTML string and add a trailing newline html.replace(HtmlBeautifier.beautify(html) + "\n") end |