-
Notifications
You must be signed in to change notification settings - Fork 435
Closed
Description
See sf905 created: 2009-03-11 by christophe chenon.
I suggested a patch back then, but for whatever reason it never made it into the code so the bug remained.
Input: cfg -xml
<entry>
<edef>A string of the form � or &#dddd</edef>
</entry>
Output: where the tilde, ~, represents a null character.
line 2 column 28 - Warning: unescaped & or unknown entity "�"
line 2 column 39 - Warning: entity "&#" doesn't end in ';'
Tidy found 2 warnings and 0 errors!
<entry>
<edef>A string of the form &#xdddd or ~dddd</edef>
</entry>
Strangely, if you add --preserve-entities yes to the config, the output is better -
<entry>
<edef>A string of the form � or &#;dddd</edef>
</entry>
Presently working on an improved patch...