Re: How to remove tag
- From: "ad" <flying@xxxxxxxxxxxxxxx>
- Date: Sun, 3 Sep 2006 05:47:59 +0800
Hi,
How can I Use RegEx to remove the HTML tags for a string?
"Andy Bates" <andy@xxxxxxxxxx> ¼¶¼g©ó¶l¥ó·s»D:O5pTuxozGHA.4920@xxxxxxxxxxxxxxxxxxxxxxx
Unless it is XHTML you'll have to load it into a string and parse it for
the tags; you could proably write a RegEx to look for the HTML tags that
you want to remove.
If it is XHTML then you can load it into a DOM (XmlDocument) and parse the
nodes amending the structure as required.
HTH
- Andy
"ad" <flying@xxxxxxxxxxxxxxx> wrote in message
news:OWxIRrnzGHA.1252@xxxxxxxxxxxxxxxxxxxxxxx
I have a string , it is make up of html tag and some text, like:
<font color=red>Town </font></strong> <strong>...
How can I remove the html tag form this string with C#
.
- Follow-Ups:
- Re: How to remove tag
- From: Andy Bates
- Re: How to remove tag
- References:
- How to remove tag
- From: ad
- Re: How to remove tag
- From: Andy Bates
- How to remove tag
- Prev by Date: RichTextBox and Mouse Cursor Issues.
- Next by Date: Re: Win App Development Program Structure
- Previous by thread: Re: How to remove tag
- Next by thread: Re: How to remove tag
- Index(es):
Relevant Pages
|