Controlling parsing of < in element text

Topics: Developer Forum, User Forum
Apr 13, 2015 at 12:45 PM
Edited Apr 13, 2015 at 3:13 PM

Have been using htmlagility pack for a while now, spotted a problem with badly formatted html, for example:

<td>Test for people aged > 18 and < 65</td>

HtmlAgaility pack fixes this to:

<td>Test for people aged > 18 and <65></65></td>

How do I control this to leave the > and <, or converts them to &gt; and &lt; entities