Previous PageNext Page

6.4.2 HTMLEncode Method

The HTMLEncode metod 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 following output:
 

The paragraph tag &lt;P&gt;

The preceding text will be displayed on a Web browser as:
 

The paragraph tag <P>

You can view the source to see the encoded HTML.
 

Copyright © 2000 Chili!Soft

Previous PageTop Of PageNext Page