2021-11-15 16:25:49 +08:00
2021-11-15 16:25:49 +08:00
2021-11-15 16:25:49 +08:00
2021-11-15 21:36:23 +08:00
2021-11-15 16:25:49 +08:00

yizhi-html-escape

A HTML escape character util. (>_<)

Usage

import {escape, unescape} from 'yizhi-html-escape'

escape('<div>Tom&Jerry</div>')
//Output:
// &lt;div&gt;Tom&amp;Jerry&lt;/div&gt;


unescape('&pi;=3.14, &yen;&cent;&pound;&copy;&reg;')
//Output
// π=3.14, ¥¢£©®

Description
No description provided
Readme 35 KiB
Languages
TypeScript 96%
JavaScript 4%