tagsoup-0.6: Parsing and extracting information from (possibly malformed) HTML documents

Text.HTML.TagSoup.Match

Synopsis

Documentation

tagOpen :: (String -> Bool) -> ([Attribute] -> Bool) -> Tag -> BoolSource

match an opening tag

tagClose :: (String -> Bool) -> Tag -> BoolSource

match an closing tag

tagText :: (String -> Bool) -> Tag -> BoolSource

match a text

tagOpenLit :: String -> ([Attribute] -> Bool) -> Tag -> BoolSource

match a opening tag's name literally

tagCloseLit :: String -> Tag -> BoolSource

match a closing tag's name literally

tagOpenAttrNameLit :: String -> String -> (String -> Bool) -> Tag -> BoolSource

Match a tag with given name, that contains an attribute with given name, that satisfies a predicate. If an attribute occurs multiple times, all occurrences are checked.

tagOpenNameLit :: String -> Tag -> BoolSource

Check if the Tag is TagOpen and matches the given name

tagCloseNameLit :: String -> Tag -> BoolSource

Check if the Tag is TagClose and matches the given name