fix for new css-text api
This commit is contained in:
parent
844a580533
commit
ae3b146712
@ -18,7 +18,7 @@ import Text.CSS.Parse (parseAttrs)
|
|||||||
sanitizeCSS :: Text -> Text
|
sanitizeCSS :: Text -> Text
|
||||||
sanitizeCSS css = toStrict . toLazyText . renderAttrs . filter isSanitaryAttr $ parseAttributes
|
sanitizeCSS css = toStrict . toLazyText . renderAttrs . filter isSanitaryAttr $ parseAttributes
|
||||||
where
|
where
|
||||||
parseAttributes = case parseOnly parseAttrs css of
|
parseAttributes = case parseAttrs css of
|
||||||
Left _ -> []
|
Left _ -> []
|
||||||
Right as -> as
|
Right as -> as
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user