代码:

1.字符串转HTML

HttpUtility.HtmlDecode(" is ")
或者
Server.UrlDecode(" is ")

2.HTML转字符串

HttpUtility.HtmlEncode(" is ")
或者
Server.UrlEncode("<p>is</p>")

 

相关文章:

  • 2021-09-20
  • 2022-02-10
  • 2021-05-30
  • 2021-11-19
  • 2021-12-27
  • 2021-12-16
  • 2021-10-20
猜你喜欢
  • 2021-10-16
  • 2022-12-23
  • 2022-02-08
  • 2022-01-29
  • 2022-02-20
  • 2021-12-01
  • 2022-01-16
相关资源
相似解决方案