html-minifier
html-minifier copied to clipboard
Space removed from between inline elements
(comment edited for clarity) Hi,
My issue: space getting removed from between spans if span contains <%= someVar %>
To reproduce: https://kangax.github.io/html-minifier/ with only Collapse-Whitespace and HTML5 selected
<span></span> <span></span> -> space doesn't get removed
<span><%= str %></span> <span></span> -> becomes <span><%= str %></span><span></span>
Is this a bug or am I missing something?
Much thanks! David
Does this still persist?
AFAIK think this used to be an issue but was fixed in HTML Minifier Terser (it’s also not an issue in HTML Minifier Next—maintained fork).