gulp-sanitize-html

0.0.1 • Public • Published

gulp-sanitize-html NPM version

gulp plugin to sanitize HTML (partial).

Issues with the HTML parser and output should be reported on the sanitize-html issue tracker.

Install with npm

npm i gulp-sanitize-html --save-dev

Usage

var gulp = require('gulp');
var sanitizeHtml = require('gulp-sanitize-html');
 
gulp.task('minify', function() {
  return gulp.src('src/*.html')
    .pipe(sanitizeHtml.transform({collapseWhitespace: true}))
    .pipe(gulp.dest('dist'))
});

See the sanitize-html docs for options.

Run tests

Install dev dependencies:

npm i && mocha

Contributing

Pull requests and stars are always welcome. For bugs and feature requests, please create an issue

Authors

Thierry Charbonnel

License

Copyright (c) 2016 Thierry Charbonnel
Released under the MIT license


/gulp-sanitize-html/

    Package Sidebar

    Install

    npm i gulp-sanitize-html

    Weekly Downloads

    1

    Version

    0.0.1

    License

    MIT

    Last publish

    Collaborators

    • thierryc