Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vitorluizc/gulp-html-accents
Encodes accents and other diacritics into HTML Entities.
https://github.com/vitorluizc/gulp-html-accents
encode gulp html html-entities javascript replace-accents
Last synced: about 5 hours ago
JSON representation
Encodes accents and other diacritics into HTML Entities.
- Host: GitHub
- URL: https://github.com/vitorluizc/gulp-html-accents
- Owner: VitorLuizC
- License: mit
- Created: 2017-03-15T17:03:22.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2020-06-02T06:55:47.000Z (over 4 years ago)
- Last Synced: 2024-09-23T06:03:56.561Z (4 days ago)
- Topics: encode, gulp, html, html-entities, javascript, replace-accents
- Language: JavaScript
- Homepage:
- Size: 752 KB
- Stars: 8
- Watchers: 3
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# gulp-html-accents
[![Greenkeeper badge](https://badges.greenkeeper.io/VitorLuizC/gulp-html-accents.svg)](https://greenkeeper.io/)
[![Build Status](https://travis-ci.org/VitorLuizC/gulp-html-accents.svg?branch=master)](https://travis-ci.org/VitorLuizC/gulp-html-accents)Encodes accents and other diacritics to HTML Entities using [`he`](https://www.npmjs.com/package/he).
```html
Olá, tudo bem com você?
```encodes to
```html
Olá, tudo bem com você?
```## Usage
Like any other _gulp plugin_.```js
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](https://github.com/mathiasbynens/he#heencodetext-options) as argument.