Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

ASP HTMLEncode Method

ASP HTMLEncode Method


Server Object Reference 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:


Server Object Reference Complete Server Object Reference Manual