日期:2014-05-17 浏览次数:20999 次
Function switchHtml(Strings, Mark) If Mark = 1 Then '//标签 转换成 HTML符号 Strings = Replace(Strings, "<", "<") Strings = Replace(Strings, ">", ">") Strings = Replace(Strings, Chr(39), "¤") Strings = Replace(Strings, "'", "¤") Strings = Replace(Strings, "´", "¤") Strings = Replace(Strings, Chr(34), """) switchHtml = Strings ElseIf Mark = 2 Then '//HTML符号 转换成 标签 Strings = Replace(Strings, "<", "<") Strings = Replace(Strings, ">", ">") Strings = Replace(Strings, "¤", "'") Strings = Replace(Strings, """, Chr(34)) switchHtml = Strings End If End Function