Met Htmlencode
# ASP HTMLEncode Method
* * Complete Server Object Reference Manual](#)
* * *
The HTMLEncode method applies HTML encoding to a specified string.
### Syntax
Server.HTMLEncode(string)
| Parameter | Description |
| --- | --- |
| string | Required. The string to be encoded. |
### Example
Script:
<%
response.write(Server.HTMLEncode("The image tag:
"))
%>
Output:
The image tag: <img>
Web browser output:
The image tag:
* * Complete Server Object Reference Manual](#)
YouTip