@plexis/escape-html
v0.0.22
Published
Takes the input text and converts HTML special characters to their entity equivalents.
Downloads
4
Maintainers
Readme
@plexis/escapeHTML
Takes the input text and converts HTML special characters to their entity equivalents.
Installation
npm i @plexis/escape-html
Usage
import escapeHTML from '@plexis/escape-html';
escapeHTML('ABCD'); // returns 'ABCD'
escapeHtml('<3'); // returns '<3'
escapeHtml('<p>This is cool</p>'); // returns '<p>This is cool</p>'
Aliases
import {escapeHTML} from 'plexis';