wraxml-0.5: Lazy wrapper to HaXML, HXT, TagSoup via custom XML tree structure
Safe HaskellSafe-Inferred
LanguageHaskell98

Text.HTML.WraXML.Tree.HXT

Synopsis

Documentation

tidy :: String -> IO String Source #

Tidy a piece of HTML code. & -> & - < unquoted tag attribute values: size=-1 -> size="-1" insert omitted closing tags

format :: XmlTree -> String Source #

Like xshow but it shows empty tags the HTML way. E.g. it emits br instead of br/, noscript/noscript instead of noscript/. Many browsers prefer that.

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.