wraxml-0.4.4.2: Lazy wrapper to HaXML, HXT, TagSoup via custom XML tree structure

Safe HaskellNone
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.

errorAnnFromHTMLStringOpt :: Attributes -> String -> IO (XmlTree, [ErrorMsg], Int) Source #

Adaption of Text.XML.HXT.Parser.MainFunctions.getXmlDocument