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: 7 months 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 (about 9 years ago)
- Default Branch: master
- Last Pushed: 2020-06-02T06:55:47.000Z (almost 6 years ago)
- Last Synced: 2025-02-05T06:51:41.709Z (over 1 year 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
[](https://greenkeeper.io/)
[](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.