-- Hoogle documentation, generated by Haddock
-- See Hoogle, http://www.haskell.org/hoogle/


-- | sanitize untrusted HTML to prevent XSS attacks
--   
--   run untrusted HTML through Text.HTML.SanitizeXSS.sanitizeXSS to
--   prevent XSS attacks. see README.md
--   <a>http://github.com/yesodweb/haskell-xss-sanitize</a> for more
--   details
@package xss-sanitize
@version 0.3.2

module Text.HTML.SanitizeXSS

-- | santize the html to prevent XSS attacks. See README.md
--   <a>http://github.com/gregwebs/haskell-xss-sanitize</a> for more
--   details
sanitize :: Text -> Text

-- | same as sanitize but makes sure there are no lone closing tags. See
--   README.md <a>http://github.com/gregwebs/haskell-xss-sanitize</a> for
--   more details
sanitizeBalance :: Text -> Text

-- | alias of sanitize function
sanitizeXSS :: Text -> Text

-- | low-level API if you have your own HTML parser. Used by safeTags.
sanitizeAttribute :: (Text, Text) -> Maybe (Text, Text)

-- | insert custom tag filtering. Don't forget to compose your filter with
--   safeTags!
filterTags :: ([Tag Text] -> [Tag Text]) -> Text -> Text

-- | Filters out any usafe tags and attributes. Use with filterTags to
--   create a custom filter.
safeTags :: [Tag Text] -> [Tag Text]
