📜  sanitizer content nodejs - Javascript代码示例

📅  最后修改于: 2022-03-11 15:02:30.041000             🧑  作者: Mango

代码示例1
//first install package: npm install sanitize-html --save
var sanitizeHtml = require('sanitize-html');
 
var dirty = 'This is test Link';
var clean = sanitizeHtml(dirty);
console.log(clean);
//result: This is test Link