html: modify the headings.events test to preserve NBWS characters