function htmlEncode(text){

return text.replace(/&/g,'&amp').replace(/\"/g,'&quot').replace(/</g,'&lt').replace(/>/g,'&gt');

}

 

相关文章:

  • 2021-12-13
  • 2022-12-23
  • 2022-12-23
  • 2020-04-08
  • 2022-01-04
  • 2021-04-04
  • 2022-01-15
  • 2021-12-21
猜你喜欢
  • 2021-06-21
  • 2022-12-23
  • 2022-12-23
  • 2021-10-06
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案