X
HOME HTML CSS JAVASCRIPT SQL PHP JQUERY XML ASP.NET MORE...
REFERENCES | EXAMPLES | FORUM | ABOUT

ASP HTMLEncode Method


Server Object Reference Complete Server Object Reference

The HTMLEncode method applies HTML encoding to a specified string.

Syntax

Server.HTMLEncode(string)

Parameter Description
string Required. The string to encode

Example

The following script:

<%
response.write(Server.HTMLEncode("The image tag: <img>"))
%>

Output:

The image tag: &lt;img&gt;

Web browser output:

The image tag: <img>


Server Object Reference Complete Server Object Reference

Your suggestion:

Close [X]

Thank You For Helping Us!

Your message has been sent to W3Schools.

Close [X]
Search w3schools.com:

WEB BUILDING

Download XML Editor FREE Website BUILDER Free HTML5 Templates FREE Website Templates Free HTML Templates

SHARE THIS PAGE

facebook