初次提交
This commit is contained in:
20
README.md
20
README.md
@ -1,3 +1,21 @@
|
||||
# yizhi-html-escape
|
||||
|
||||
HTML转义字符处理工具
|
||||
|
||||
A HTML escape character util. (>_<)
|
||||
|
||||
|
||||
# Usage
|
||||
|
||||
```javascript
|
||||
import {escape, unescape} from 'yizhi-html-escape'
|
||||
|
||||
escape('<div>Tom&Jerry</div>')
|
||||
//Output:
|
||||
// <div>Tom&Jerry</div>
|
||||
|
||||
|
||||
unescape('π=3.14, ¥¢£©®')
|
||||
//Output:
|
||||
// π=3.14, ¥¢£©®
|
||||
|
||||
```
|
Reference in New Issue
Block a user