asp html转换字符程序

作者:袖梨 2022-07-02

Function HTMLDecode(reString)
 Dim Str:Str=reString
 If Not IsNull(Str) Then
  Str = Replace(Str, "&", "&")
  Str = Replace(Str, ">", ">")
  Str = Replace(Str, "<", "<")
  Str = Replace(Str, " ", CHR(32))
     Str = Replace(Str, " ", CHR(9))
  Str = Replace(Str, "    ", CHR(9))
  Str = Replace(Str, """, CHR(34))
  Str = Replace(Str, "'", CHR(39))
  Str = Replace(Str, "", CHR(13))
  Str = Replace(Str, "
", CHR(10))
  HTMLDecode = Str
 End If
End Function

相关文章

精彩推荐