You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, contrary to that the example code, i would strongly suggest to do the entity decoding after getting the inner text, and not before loading the HTML data into HtmlAgilityPack.
Great. I figured using the decode HTML earlier. But, I thought there might be a way where InnerText will decode HTML if I provide some flag while loading HTML. Thank you for your help
1. Description
Here I'm trying to strip Html tags and attributes from a text and most of the tags are removed but
is staying in the text.3. Fiddle or Project
https://dotnetfiddle.net/haBumr
Input text:
<p>This is a test string. </p>
Output text:
This is a test string.
Is there any way I can get the text as I see in a browser?
The text was updated successfully, but these errors were encountered: