Class: BootstrapEmail::Converter::BeautifyHTML

Inherits:
Base
  • Object
show all
Defined in:
lib/bootstrap-email/converters/beautify_html.rb

Instance Attribute Summary

Attributes inherited from Base

#doc

Class Method Summary collapse

Methods inherited from Base

build, #initialize

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