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?
            Asked
            
        
        
            Active
            
        
            Viewed 7,991 times
        
    3
            
            
        - 
                    2Try the Html Agility Pack. You can get it through Nuget. – Jason P Aug 22 '13 at 19:42
 
1 Answers
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