📜  避免 html 注入 - Javascript 代码示例

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

代码示例1
//You can encode the "<" and ">" to their HTML equivelant
html = html.replace(//g, ">");