|
The HTMLEncode method applies HTML encoding to a specified string.
Server.HTMLEncode( string )
string
Specifies the string to encode.
The following script:
<% Server.HTMLEncode("The paragraph tag <P>" %>
produces the following output:
The paragraph tag <P>
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 2002 Sun Microsystems, Inc. All rights reserved. Legal Notice.