-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | Parse HTML documents using xml-conduit datatypes. -- -- This package uses tagstream-conduit for its parser. It automatically -- balances mismatched tags, so that there shouldn't be any parse -- failures. It does not handle a full HTML document rendering, such as -- adding missing html and head tags. Note that, since version 1.3.1, it -- uses an inlined copy of tagstream-conduit with entity decoding -- bugfixes applied. @package html-conduit @version 1.3.2 module Text.HTML.DOM -- | Converts a stream of bytes to a stream of properly balanced -- Events. -- -- Note that there may be multiple (or not) root elements. -- sinkDoc addresses that case. eventConduit :: Monad m => ConduitT ByteString Event m () sinkDoc :: MonadThrow m => ConduitT ByteString o m Document readFile :: FilePath -> IO Document parseLBS :: ByteString -> Document parseBSChunks :: [ByteString] -> Document eventConduitText :: Monad m => ConduitT Text Event m () sinkDocText :: MonadThrow m => ConduitT Text o m Document parseLT :: Text -> Document parseSTChunks :: [Text] -> Document