在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:mathiasbynens/he开源软件地址:https://github.com/mathiasbynens/he开源编程语言:JavaScript 99.2%开源软件介绍:hehe (for “HTML entities”) is a robust HTML entity encoder/decoder written in JavaScript. It supports all standardized named character references as per HTML, handles ambiguous ampersands and other edge cases just like a browser would, has an extensive test suite, and — contrary to many other JavaScript solutions — he handles astral Unicode symbols just fine. An online demo is available. InstallationVia npm: npm install he Via Bower: bower install he Via Component: component install mathiasbynens/he In a browser: <script src="he.js"></script> In Node.js, io.js, Narwhal, and RingoJS: var he = require('he'); In Rhino: load('he.js'); Using an AMD loader like RequireJS: require(
{
'paths': {
'he': 'path/to/he'
}
},
['he'],
function(he) {
console.log(he);
}
); API
|
请发表评论