gulp-html-accents

3.4.1 • Public • Published

gulp-html-accents

Greenkeeper badge Build Status

Encodes accents and other diacritics to HTML Entities using he.

<p>Olá, tudo bem com você?</p>

encodes to

<p>Ol&#xE1;, tudo bem com voc&#xEA;?</p>

Usage

Like any other gulp plugin.

const gulp = require('gulp');
const accents = require('gulp-html-accents');
 
gulp.task('process:html', () => {
  gulp.src('./src/index.html')
    .pipe(accents(/* he.encode options */))
    .pipe(gulp.dest('./dist'));
});

Options

gulp-html-accents can, optionally, receives he.encode options as argument.

Package Sidebar

Install

npm i gulp-html-accents

Weekly Downloads

17

Version

3.4.1

License

MIT

Unpacked Size

156 kB

Total Files

12

Last publish

Collaborators

  • vitorluizc