ASP HTMLEncode Method
Complete Server Object Reference Manual
The HTMLEncode method applies HTML encoding to a specified string.
Syntax
Server.HTMLEncode(string)
| Parameters | Description |
|---|---|
| string | Required. The string to encode. |
Example
Script:
<%
response.write(Server.HTMLEncode("The image tag: "))
%>
Output:
The image tag:
Web browser output:
The image tag:
Complete Server Object Reference Manual