X-Git-Url: http://gitweb.michael.orlitzky.com/?p=dead%2Fhalcyon.git;a=blobdiff_plain;f=src%2FHtml.hs;fp=src%2FHtml.hs;h=01004cf556b01f3dde21fd8b9585b82732c5b009;hp=2a3b4838b9b22a363b2c80f43476832ee4f3c616;hb=eed0d7b0f8ef28864c00925beef5c8853bcd44cc;hpb=4f1ecbb17ed0e0a9506187630374468a46179514 diff --git a/src/Html.hs b/src/Html.hs index 2a3b483..01004cf 100644 --- a/src/Html.hs +++ b/src/Html.hs @@ -14,7 +14,7 @@ replace_entities [] = [] replace_entities ('&':xs) = let (b, a) = break (== ';') xs in case (lookupEntity b, a) of - (Just c, ';':as) -> c : replace_entities as + (Just s, ';':as) -> s ++ replace_entities as _ -> '&' : replace_entities xs replace_entities (x:xs) = x : replace_entities xs