HTMLEncode 方法对一段指定的字符串应用 HTML 编码
发布时间:2023-10-12 15:09:50 所属栏目:Asp教程 来源:
导读:HTMLEncode 方法对一段指定的字符串应用 HTML 编码。
语法
Server.HTMLEncode(string)
参数 描述
string 必需。要编码的字符串。
实例
脚本:
<%
response.write(Server.HTMLEncode
语法
Server.HTMLEncode(string)
参数 描述
string 必需。要编码的字符串。
实例
脚本:
<%
response.write(Server.HTMLEncode
HTMLEncode 方法对一段指定的字符串应用 HTML 编码。 语法 Server.HTMLEncode(string) 参数 描述 string 必需。要编码的字符串。 实例 脚本: <% response.write(Server.HTMLEncode("The image tag: <img>")) %> 输出: The image tag: <img> Web 浏览器输出: The image tag: <img> (编辑:聊城站长网) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
推荐文章
站长推荐