Safe Haskell | None |
---|---|
Language | Haskell98 |
Synopsis
- tidy :: String -> IO String
- format :: XmlTree -> String
- fromHTMLString :: String -> IO XmlTree
- fromHTMLStringMetaEncoding :: String -> IO XmlTree
- errorAnnFromHTMLStringMetaEncoding :: String -> IO (XmlTree, [ErrorMsg], Int)
- errorAnnFromHTMLStringOpt :: Attributes -> String -> IO (XmlTree, [ErrorMsg], Int)
- type ErrorMsg = (Int, String)
- getMetaHTTPHeaders :: String -> IO [(String, String)]
Documentation
tidy :: String -> IO String Source #
Tidy a piece of HTML code. & -> & - < unquoted tag attribute values: size=-1 -> size="-1" insert omitted closing tags
fromHTMLString :: String -> IO XmlTree Source #
fromHTMLStringMetaEncoding :: String -> IO XmlTree Source #
Guess the encoding from the META-HTTP-EQUIV attribute, if available. Otherwise fall back to ISO-Latin-1.