fixed, tested and documented fix to RT #93604 missing entities when parsing HTML