jonschlinkert / gulp-htmlmin

Minify HTML

Home Page:https://github.com/jonschlinkert

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Parse error on valid HTML with "<" character

RoxKilly opened this issue · comments

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

Please read at least the top of README before opening new issues.

@shinnn My apologies