Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- fromXmlHtmlNode :: Node -> Either String Node
- fromRawXml :: ByteString -> Either String [Node]
- fromRawHtml :: ByteString -> Either String [Node]
Documentation
Convert a Node
from Text.XmlHtml into an Node
from Xmlbf,
if possible.
Parses a given UTF8-encoded raw XML fragment into a
, using the xmlhtml
Haskell library, so all of xmlhtml
's parsing quirks apply.
You can provide the output of this function as input to Xmlbf's
parse
.
The given XML can contain more zero or more text or element nodes.
Comments are discarded from the resulting nodes and their children.
Surrounding whitespace is not stripped.
Like fromRawXml
, but parses using xmlhtml
's quirks HTML mode.