The HTMLEncode method applies HTML syntax to a specified string of ASCII characters.
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.
<% Response.Write Server.HTMLEncode("The tag for a table is: <Table>") %>
The tag for a table is: <Table>
In a browser the output would look like this: The tag for a table is: <Table>