When I load certain html files with Html Agility Pack, I get that it will not close some tags (looking at InnerHtml and OuterHtml properties) when text within html tags has triangualr braces like this
<span class='title'> Launching app results in an error "Activation of http://<server name="">/TemplateBuilder/?language=1033&locale=1033 resulted in exception"</span>
so as output I get
<span class='title'> Launching app results in an error "Activation of http://<server name="">/TemplateBuilder/?language=1033&locale=1033 resulted in exception"
Is there anything that can be done to preserve it? Because is missing on output, the whole html is not displayed.
Thank you
This happens because your original html is too invalid. It should be:
This kind of malformed html cannot be detected by the Html Agility Pack.