Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell98 |
Synopsis
- tidy :: String -> IO String
- format :: XmlTree -> String
- fromHTMLString :: String -> IO XmlTree
- fromHTMLStringMetaEncoding :: String -> IO XmlTree
- errorAnnFromHTMLStringMetaEncoding :: String -> IO (XmlTree, [ErrorMsg], Maybe Int)
- errorAnnFromHTMLStringOpt :: SysConfigList -> String -> IO (XmlTree, [ErrorMsg], Maybe 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
fromHTMLStringMetaEncoding :: String -> IO XmlTree Source #
Guess the encoding from the META-HTTP-EQUIV attribute, if available. Otherwise fall back to ISO-Latin-1.
errorAnnFromHTMLStringMetaEncoding :: String -> IO (XmlTree, [ErrorMsg], Maybe Int) Source #
Warning: error collection does not work currently
errorAnnFromHTMLStringOpt :: SysConfigList -> String -> IO (XmlTree, [ErrorMsg], Maybe Int) Source #
Warning: error collection does not work currently
In earlier version I managed to obtain the error messages. This does not work anymore and do not know how to achieve this.