逃脱山羊:&:goat:; 转义字符串以用于HTML或反向 源码
转义字符串以用于HTML或反向 安装 $ npm install escape-goat 用法 const { htmlEscape , htmlUnescape } = require ( 'escape-goat' ) ; htmlEscape ( ':unicorn: & :goat:' ) ; //=> ':unicorn: & :goat:' htmlUnescape ( ':unicorn: & :goat:' ) ; //=> ':unicorn: & :goat:' htmlEscape ( 'Hello World' ) ; //=> 'He
下载地址
用户评论