Server Object
All Methods
All Objects
All Properties
METHOD: Server.HTMLEncode
Server.
HTMLEncode
(String)
The
HTMLEncode
method applies HTML encoding syntax to a specified string of ASCII characters. For example, this allows you to display a HTML tag on a web page and not have it treated as an actual tag.
There is one mandatory argument.
String
The
String
argument is the string to be encoded.
Code:
<% Response.Write
Server.HTMLEncode
("The tag for a table is: <Table>") %>
Output:
The tag for a table is: <Table>
Browser Output:
The tag for a table is: <Table>
Copyright 1999-2001 by Infinite Software Solutions, Inc. All rights reserved.
Trademark Information