473,372 Members | 1,244 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

Convert HTML Codes

Hi
I want to convert HTML codes ("!" , "#" , "$" , "%") to text
("!","#", "$", "%"). How can i do it without replacing one an one the codes?

Thanks in advance
Jan 13 '06 #1
3 6429
Jonathan,

You can use the static HtmlDecode method on the HttpUtils class in the
System.Web namespace.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Jonathan" <@> wrote in message
news:%2******************@TK2MSFTNGP14.phx.gbl...
Hi
I want to convert HTML codes ("!" , "#" , "$" , "%") to
text ("!","#", "$", "%"). How can i do it without replacing one an one the
codes?

Thanks in advance

Jan 13 '06 #2
You can go for regular expression...
have fun
"Jonathan" <@> wrote in message
news:%2******************@TK2MSFTNGP14.phx.gbl...
Hi
I want to convert HTML codes ("!" , "#" , "$" , "%") to text ("!","#", "$", "%"). How can i do it without replacing one an one the codes?
Thanks in advance

Jan 13 '06 #3
No, just use Server.HtmlDecode(string s), where 'string s' is the encoded
characters you need to decode.

"Rahul Goel" <ra*********@gmail.com> wrote in message
news:um**************@TK2MSFTNGP14.phx.gbl...
You can go for regular expression...
have fun
"Jonathan" <@> wrote in message
news:%2******************@TK2MSFTNGP14.phx.gbl...
Hi
I want to convert HTML codes ("!" , "#" , "$" , "%") to

text
("!","#", "$", "%"). How can i do it without replacing one an one the

codes?

Thanks in advance


Jan 14 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: petrovitch | last post by:
The function imagecreate() is limited to raw text. How can I convert an string with HTML tags to an image? For example, if I wanted to create a dynamic banner or web page heading using style...
7
by: Neil Varshneya | last post by:
Hi, I'm looking for an html code list that contains all html codes and their effects. If all of you smart people who read this article know where such a list is please post a follow-up message to...
1
by: Lamberti Fabrizio | last post by:
Hi all. I've got an ActiveX Object that gives me OleColor codes for its graphical components. I need to convert these OleColor codes into RGB codes using JScript or VBScript, becuase I have...
2
by: name | last post by:
The piece of code is for a Web Form Page. Who can tell me why? Thanks a lot! ------------------------------------------------ VB.Net Code: Protected Overrides Sub AddParsedSubObject(ByVal obj As...
3
by: dale zhang | last post by:
Hi, I am trying to read an image from MS Access DB based on the following article: http://www.vbdotnetheaven.com/Code/Sept2003/2175.asp The article author is using PictureBox for windows...
25
by: Charles Law | last post by:
I thought this was going to be straight forward, given the wealth of conversion functions in .NET, but it is proving more convoluted than imagined. Given the following <code> Dim ba(1) As...
3
by: iwdu15 | last post by:
hi, how can i convert rtf encoding to HTML? i looked at previous posts and i cant seem to find the HTTPUtility in vbexpress 2005. Is it not there, and is there another way? thanks -- -iwdu15
0
by: prabhuvonnet | last post by:
Hello all, I need to convert this following vb.net codes to c# codes within a day or two. So i need this help urgently. Please look at the following code and help me out to finish this barcode...
0
by: setheo | last post by:
To all gurus, I am currently converting some of C++ codes to VB.net The C++ Codes is as follows : ================= C++ CODE ================== typedef struct _tagBBCameraParameter {...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.