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
6 7 8 9 |
# File 'lib/bootstrap-email/converters/beautify_html.rb', line 6 def self.replace(html) # Pretty print format the HTML string and add a trailing newline html.replace("#{HtmlBeautifier.beautify(html)}\n") end |