Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

I am looking to use HTMLEncode and

Status
Not open for further replies.

iroo4dex

Programmer
Jul 30, 2001
2
IE
I am looking to use HTMLEncode and URLEncode on my web pages , has anyone got any source code they can recommend??
Any suggestions???
 
I'm not sure if this is what yo want but have a look:

The HTMLEncode method applies HTML encoding to a specified string.

Syntax
Server.HTMLEncode( string )

Parameters
string : Specifies the string to encode.

Example
Code:
<%= Server.HTMLEncode(&quot;The paragraph tag: <P>&quot;) %>
produces the output:

The paragraph tag: <P>

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.

Billy H

bhogar@acxiom.co.uk
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top