当前位置: 首页 > 网络学院 > 服务端脚本教程 > ASP > ASP HTMLEncode 方法
The HTMLEncode method applies HTML encoding to a specified string.
HTMLEncode方法的作用是将HTML代码转换为相应的字符串编码。
Server.HTMLEncode(string) |
| Parameter 参数 | Description 描述 |
|---|---|
| string | Required. The string to encode 必要参数。输出转换编码的字符串 |
| The following script: <%
response.write(Server.HTMLEncode("The image tag: <img>")) %> Output: The image tag: <img> Web browser output: The image tag: <img> |
评论 (0) All