Fix escaping of html entities in tag names.