tagsoup-0.7: Parsing and extracting information from (possibly malformed) HTML documentsContentsIndex
Text.HTML.TagSoup.Match
Synopsis
tagOpen :: (String -> Bool) -> ([Attribute] -> Bool) -> Tag -> Bool
tagClose :: (String -> Bool) -> Tag -> Bool
tagText :: (String -> Bool) -> Tag -> Bool
tagComment :: (String -> Bool) -> Tag -> Bool
tagOpenLit :: String -> ([Attribute] -> Bool) -> Tag -> Bool
tagCloseLit :: String -> Tag -> Bool
tagOpenAttrLit :: String -> Attribute -> Tag -> Bool
tagOpenAttrNameLit :: String -> String -> (String -> Bool) -> Tag -> Bool
tagOpenNameLit :: String -> Tag -> Bool
tagCloseNameLit :: String -> Tag -> Bool
anyAttr :: ((String, String) -> Bool) -> [Attribute] -> Bool
anyAttrName :: (String -> Bool) -> [Attribute] -> Bool
anyAttrValue :: (String -> Bool) -> [Attribute] -> Bool
anyAttrLit :: (String, String) -> [Attribute] -> Bool
anyAttrNameLit :: String -> [Attribute] -> Bool
anyAttrValueLit :: String -> [Attribute] -> Bool
getTagContent :: String -> ([Attribute] -> Bool) -> [Tag] -> [Tag]
Documentation
tagOpen :: (String -> Bool) -> ([Attribute] -> Bool) -> Tag -> Bool
match an opening tag
tagClose :: (String -> Bool) -> Tag -> Bool
match an closing tag
tagText :: (String -> Bool) -> Tag -> Bool
match a text
tagComment :: (String -> Bool) -> Tag -> Bool
tagOpenLit :: String -> ([Attribute] -> Bool) -> Tag -> Bool
match a opening tag's name literally
tagCloseLit :: String -> Tag -> Bool
match a closing tag's name literally
tagOpenAttrLit :: String -> Attribute -> Tag -> Bool
tagOpenAttrNameLit :: String -> String -> (String -> Bool) -> Tag -> Bool
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 -> Bool
Check if the Tag is TagOpen and matches the given name
tagCloseNameLit :: String -> Tag -> Bool
Check if the Tag is TagClose and matches the given name
anyAttr :: ((String, String) -> Bool) -> [Attribute] -> Bool
anyAttrName :: (String -> Bool) -> [Attribute] -> Bool
anyAttrValue :: (String -> Bool) -> [Attribute] -> Bool
anyAttrLit :: (String, String) -> [Attribute] -> Bool
anyAttrNameLit :: String -> [Attribute] -> Bool
anyAttrValueLit :: String -> [Attribute] -> Bool
getTagContent :: String -> ([Attribute] -> Bool) -> [Tag] -> [Tag]
Produced by Haddock version 0.8