3

I am creating an ASP.NET MVC 4 site and there is a function where I parse emails via Pop3 protocol. So after I fetch an email, I have the html coded email in a string. I want to use the html DOM elements like classes and id-s, to get data from the email. It would be simple if I can use jQuery, but I do not find any way to use it. Is there any solution to use something like jQuery from an MVC Controller to select the proper data?

Kiss László
  • 265
  • 4
  • 16

1 Answers1

5

You could use the HTML Agility Pack library to parse and manipulate HTML from .NET code. Check this post out for getting started.

Community
  • 1
  • 1
Darin Dimitrov
  • 1,023,142
  • 271
  • 3,287
  • 2,928