trying to validate HTML not working for me

Topics: User Forum
Aug 22, 2013 at 9:19 PM
I'm trying to use HTML Agility pack to valid HTML entered by users, but it's not working for me. For example the following

htmlDoc.Loadhtml("<div><b>hello</div>")

gives me a htmlDoc.ParseErrors as 0. Why would that be?