🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

gulp-html-accents

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gulp-html-accents

Replace accents for HTML Entities.

latest
Source
npmnpm
Version
3.4.1
Version published
Maintainers
1
Created
Source

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.

Keywords

gulp

FAQs

Package last updated on 28 Nov 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts