增加&#xxxx;的支持

This commit is contained in:
2021-11-15 21:36:23 +08:00
parent f5eb42da7e
commit ffa0869754
3 changed files with 5 additions and 5 deletions

View File

@ -2,6 +2,6 @@ const {escape, unescape} = require('./dist/index')
const str = `π=3.14, ¥¢£©®`
const str1 = escape(str)
const str2 = unescape(str1)
const str2 = unescape(str1 + '你')
console.log(str1)
console.log(str2)