This project has moved and is read-only. For the latest updates, please go here.

Conversion from   to   - incorrect?

Topics: User Forum
Mar 16, 2009 at 12:18 AM
Hi, as in the title, Html Agility Pack seems to be converting " " to " ", which is obviously screwing things up for me! Does it not understand the '&#...' form of a character? Is this an actual bug or have I missed something?

Also, is there a way to get it to read in HTML, fix it, then save it out again? Calling load then save does nothing; the only way I can get it to save out a fixed file is to set "OptionOutputAsXml = true", but that is doing unexpected things like wrapping <html> in <span>. All I want is to be able to run the XPATH queries using XmlDocument that I used to be able to run, but on HTML files that are not completely well-formed.