Search DaTutorials:  
HOME
ASP Tutorials
Introduction
Reference
   Building ASP Pages
   Built-in Objects
Tutorials

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 paragraph tag: <P>") %> 
 

produces the output

The paragraph tag: &lt;P&gt;
 

Note   The preceding output will be displayed by a Web browser as

The paragraph tag: <P>
 

If you view source, or open the page as a text file, you will be able to see the encoded HTML.

Applies To

Server Object

See Also

URLEncode


     Nepal trekking | Meeting Rooms | Online Loans | Agencia de turismo | Mortgages
Home     Link To Us     Ad With Us     Contact Us     Tell A Friend     Affiliates     Blog     MsOfficeHelp