Class: HtmlCleanup

Inherits:
Object
  • Object
show all
Includes:
ActionView::Helpers::TextHelper
Defined in:
app/services/html_cleanup.rb

Instance Method Summary collapse

Constructor Details

#initialize(html) ⇒ HtmlCleanup

Returns a new instance of HtmlCleanup.


4
5
6
# File 'app/services/html_cleanup.rb', line 4

def initialize(html)
  @html = html
end

Instance Method Details

#cleanupObject


8
9
10
# File 'app/services/html_cleanup.rb', line 8

def cleanup
  Typogruby.improve format_html(@html)
end