Class: HtmlPress::Entities
- Inherits:
-
Object
- Object
- HtmlPress::Entities
- Defined in:
- lib/phlexing/patches/html_press.rb
Instance Method Summary collapse
-
#minify(out) ⇒ Object
The minification step turned this input <div data-erb-class=“<%= something? ? "class-1" : "class-2" %>”>Text</div>.
Instance Method Details
#minify(out) ⇒ Object
The minification step turned this input <div data-erb-class=“<%= something? ? "class-1" : "class-2" %>”>Text</div>
into this output: <div data-erb-class=“<%= 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 |