0.0.1 • Published 8 years ago

gulp-sanitize-html v0.0.1

Weekly downloads
1
License
MIT
Repository
github
Last release
8 years ago

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