convert html to text.

i had the requirement to convert existing html into text, tried regular expression there are limitations to it, ex:

i could have spent some more time trying to figure out a solution, but codeplex has this amazing tool called “HTMLAGILITYPACK”, just download it along with the helper class and call the function ConvertHtml.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: