Click here to Skip to main content
14,330,776 members
Rate this:
Please Sign up or sign in to vote.
See more:
I am having HTML content. How can i convert it into plain text so that i can so it in a label.

Any suggestion !!!
Posted
Updated 8-Oct-19 8:05am
Rate this:
Please Sign up or sign in to vote.

Solution 1

You can use the Html Agility Pack[^], a HTML parser for .NET, for this. One of their samples shows how to convert HTML to plain text:
http://htmlagilitypack.codeplex.com/sourcecontrol/changeset/view/62772#52179[^]
   
Rate this:
Please Sign up or sign in to vote.

Solution 3

not helping at all this above "solution"
   
Comments
phil.o 8-Oct-19 14:07pm
   
And your "solution" neither is. If you have a question, please feel free to post it, I'm pretty sure there will be someone who will try to help.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100