import Text.HTML.SanitizeXSS
testHTML = " safeanchor Unbalanced"
test f actual expected = do
putStrLn $ "testing: " ++ actual
putStrLn $ if f actual == expected then "pass" else "failure\n" ++ "\nexpected:" ++ (show expected) ++ "\nactual: " ++ (show actual)
main = do
test sanitizeBalance testHTML " safeanchor Unbalanced"
test sanitize testHTML " safeanchor Unbalanced"
let testRelativeURI = "bar"
test sanitize testRelativeURI testRelativeURI
let protocol_hack = ""
test sanitize protocol_hack ""
let object_hack = ""
test sanitize object_hack ""
let embed_hack = ""
test sanitize embed_hack ""
let ucase_image_hack = ""
test sanitize ucase_image_hack ""