Node.js HTML entity encoder/decoder 转码
https://github.com/mathiasbynens/he
只转义特殊字符,不转义html tag:
he.encode('foo © and & ampersand', {
'allowUnsafeSymbols':true
});
https://github.com/mathiasbynens/he
he.encode('foo © and & ampersand', {
'allowUnsafeSymbols':true
});
本文标题:he: HTML entity encoder/decoder
本文链接:https://www.haomeiwen.com/subject/kpbjfftx.html
网友评论