I have a line containing a bunch of html. I want to html-encode text in html tags, but not the tags themselves. there is an easy way to do this in asp.net c # 3.5
You can use the HTML Agility Pack (available via nuget) to read the HTML, and then use the HtmlEncode method to encode specific values if necessary, requesting them.
if you need a bunch of features use htmlagilitypack. if you only need URLs or something in specific tags, a self-written parser will be more efficient