I'm trying to minify my HTML. I've just discovered and started using the
My gulp task...
<div> < back </div>
Error: Parse Error: < back </div>
at new HTMLParser (html-minifier\src\htmlparser.js:236:13)
I'm afraid you're going to have to change them to
html-minifier team has specifically stated they won't support bare
You want do this anyway, both to not trip up parsers and to protect against certain XSS attacks. See
for more info.
The good news is any text editor worth its coding salt supports project-wide or at least multi-file search and replace. Assuming all your HTML
<tags> don't have whitespace after the
<, you should be able to just replace "< " with "< ".