471,122 Members | 1,009 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,122 software developers and data experts.

HTML string conversion

What are the functions to convert to/from escaped versions for proper
HTML viewing? E.g. "< is lt" <--> "&lt is lt"

thanks

Nov 19 '05 #1
3 1102
Are you looking for Server.HTMLEncode and Server.HTMLDecode?
http://www.devx.com/tips/Tip/13459

Or maybe Server.URLEncode?
http://www.4guysfromrolla.com/webtech/042601-1.shtml

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net
"Mike" <vi********@yahoo.com> wrote in message
news:11*********************@f14g2000cwb.googlegro ups.com...
What are the functions to convert to/from escaped versions for proper
HTML viewing? E.g. "< is lt" <--> "&lt is lt"

thanks

Nov 19 '05 #2
Server.HtmlEncode("< is It");
"Mike" wrote:
What are the functions to convert to/from escaped versions for proper
HTML viewing? E.g. "< is lt" <--> "< is lt"

thanks

Nov 19 '05 #3
Ah -
System.Web.HttpUtility.HtmlEncode

thanks

Nov 19 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

10 posts views Thread by Marcin Kalicinski | last post: by
4 posts views Thread by ALESSANDRO Baraldi | last post: by
reply views Thread by Knut-Olav Traa | last post: by
6 posts views Thread by Marco Herrn | last post: by
reply views Thread by Max Power | last post: by
10 posts views Thread by =?Utf-8?B?RWxlbmE=?= | last post: by
7 posts views Thread by Class | last post: by
1 post views Thread by =?Utf-8?B?QUJO?= | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.