taggy-0.1.2: Efficient and simple HTML/XML parsing library
Text.Taggy.Parser
Contents
Description
Parse an HTML or XML document as a list of Tags with taggyWith or run.
Tag
taggyWith
run
Synopsis
taggyWith :: Bool -> Text -> [Tag]Source
Get a list of tags from an HTML document represented as a Text value.
Text
The Bool lets you specify whether you want to convert HTML entities to their corresponding unicode character. (True means yes convert)
Bool
True
run :: Bool -> Text -> Result [Tag]Source
Same as taggyWith but hands you back a Result from attoparsec
Result
attoparsec
tagopen :: Bool -> Parser TagSource
tagclose :: Parser TagSource
tagcomment :: Parser TagSource
tagstyle :: Bool -> Parser TagSource
tagscript :: Bool -> Parser TagSource
tagtext :: Bool -> Parser TagSource
htmlWith :: Bool -> Parser [Tag]Source