Reputation: 333
I'm looking for code or a library in C# that convert HTML email format to plain text format. I want to send my emails with both format. Also, I would like the href links to be converted to text as well. Exactly how mailchimp does it here: https://templates.mailchimp.com/resources/html-to-text/ Any idea?
Upvotes: 0
Views: 4528
Reputation: 324
You can use HtmlAgilityPack and loop through nodes to extract text. Example: Grab all text from html with Html Agility Pack
Upvotes: 1