Lee

Lee

  • NA
  • 27
  • 0

Removing HTML tags

Jun 19 2006 6:32 AM
Hi all,

Maybe someone here has a solution to this problem. I have to parse some HTML code in C# and when I find a tag I need to remove selected parts of it, but this posses problems i.e.

<A class="" title="" href="http://www.handelsblatt.com" target="_blank">Handelsblatt</A>

from this tag I need to return:

http://www.handelsblatt.com

This problem is not as easy as it looks at first glance. Sometimes the link has parameters and I need them in the resulting string.

I hope I have shown the problem clear enough and thanks for any help you can give me.