Text.HTML.TagSoup.HT.Parser
Description
This is a tag soup parser with a custom tag data structure.
The parser works only on proper Unicode texts, that is, you must have decoded it before, e.g. using decoding functions from hxt or encoding package.
- class CharType char
- runSoup :: CharType char => String -> [T char]
- runSoupWithPositions :: CharType char => String -> [T char]
- runSoupWithPositionsName :: CharType char => FilePath -> String -> [T char]
- runTag :: (CharType char, Show char) => String -> T char
- runInnerOfTag :: (CharType char, Show char) => String -> T char
Documentation
runSoup :: CharType char => String -> [T char]Source
Like runSoupWithPositions but hides source file positions.
runSoupWithPositions :: CharType char => String -> [T char]Source
Parse an HTML document to a list of T.
Automatically expands out escape characters.