Parse error on valid HTML with "<" character
RoxKilly opened this issue · comments
RoxKilly commented
The plugin is enable to parse valid HTML documents if their text contains <
. For example:
<div> < back </div>
My gulp task:
gulp.task('build-html',function(){
return gulp.src(appDev+'test.html')
.pipe(htmlmin({collapseWhitespace: true}))
.pipe(gulp.dest(appProd));
});
Generates error:
Error: Parse Error: < back </div>
at new HTMLParser (html-minifier\src\htmlparser.js:236:13)
gulp-htmlmin 2.0.0
shinnn commented
Please read at least the top of README before opening new issues.