Class: HtmlPress::Entities

Inherits:
Object
  • Object
show all
Defined in:
lib/phlexing/patches/html_press.rb

Instance Method Summary collapse

Instance Method Details

#minify(out) ⇒ Object

The minification step turned this input <div data-erb-class=“&lt;%= something? ? &quot;class-1&quot; : &quot;class-2&quot; %&gt;”>Text</div>

into this output: <div data-erb-class=“&lt;%= something? ? ” class-1“ :” class-2“ %& gt;”>Text</div>

which in our wasn’t ideal, because nokogiri parsed it as: <div data-erb-class=“<%= something? ? ” class-1=“ :” class-2=“%>”>Text</div>



24
25
26
# File 'lib/phlexing/patches/html_press.rb', line 24

def minify(out)
  out
end