yizhi-html-escape
v1.0.3
Published
HTML escape character util
Downloads
8
Maintainers
Readme
yizhi-html-escape
A HTML escape character util. (>_<)
Usage
import {escape, unescape} from 'yizhi-html-escape'
escape('<div>Tom&Jerry</div>')
//Output:
// <div>Tom&Jerry</div>
unescape('π=3.14, ¥¢£©®')
//Output:
// π=3.14, ¥¢£©®