@@ -574,6 +574,7 @@ characterReference = try $ do
575 ent <- many1Till nonspaceChar (char ';')
575 ent <- many1Till nonspaceChar (char ';')
576 let ent' = case ent of
576 let ent' = case ent of
577+ '#':'X':xs -> '#':'x':xs -- workaround tagsoup bug
577 '#':_ -> ent
578 '#':_ -> ent
578 _ -> ent ++ ";"
579 _ -> ent ++ ";"
579 case lookupEntity ent' of
580 case lookupEntity ent' of