How to remove the <br> tag in my html string using HtmlAgilityPack in C#?

Posted by Saravanan on Stack Overflow See other posts from Stack Overflow or by Saravanan
Published on 2012-12-15T10:17:04Z Indexed on 2012/12/15 11:04 UTC
Read the original article Hit count: 168

Filed under:
|
|

I have one HTML string and i am using HtmlAgilityPack for parsing html string.

This is my html string

<p class="Normal-P" style="direction: ltr; unicode-bidi: normal;"><span class="Normal-H">sample<br/></span> <span class="Normal-H">texting<br></span></p>

This HTML string has <br> tag in two places.So, i want to remove both the tags...

can you help me to remove all <br> tags in my html string...

© Stack Overflow or respective owner

Related posts about c#

Related posts about c#-4.0