Fix usage of entitiy definitions from html5lib