HTMLEncode

The HTMLEncode method applies HTML encoding to a specified string.

Syntax

Server.HTMLEncode( string )

 

Parameters
string
Specifies the string to encode.
Example

The following script

<%= Server.HTMLEncode("The bold tag: <B>") %>
 

Produces the output:

The bold tag: &lt;B&gt;
Applies To

Server Object

See Also

URLEncode



©2001-2015 eMill. All trademarks property of their owners.