xss-sanitize-0.2.6: sanitize untrusted HTML to prevent XSS attacksSource codeContentsIndex
Text.HTML.SanitizeXSS
Synopsis
sanitize :: String -> String
sanitizeBalance :: String -> String
sanitizeXSS :: String -> String
filterTags :: ([Tag String] -> [Tag String]) -> String -> String
safeTags :: [Tag String] -> [Tag String]
Documentation
sanitize :: String -> StringSource
santize the html to prevent XSS attacks. See README.md http://github.com/gregwebs/haskell-xss-sanitize for more details
sanitizeBalance :: String -> StringSource
same as sanitize but makes sure there are no lone closing tags. See README.md http://github.com/gregwebs/haskell-xss-sanitize for more details
sanitizeXSS :: String -> StringSource
alias of sanitize function
filterTags :: ([Tag String] -> [Tag String]) -> String -> StringSource
insert custom tag filtering. Don't forget to compose your filter with safeTags!
safeTags :: [Tag String] -> [Tag String]Source
Filters out any usafe tags and attributes. Use with filterTags to create a custom filter.
Produced by Haddock version 2.6.1