org.htmlparser.filters
public class CssSelectorNodeFilter extends Object implements NodeFilter
Todo: more thorough testing, any relevant pseudo-classes, css3 features
Constructor Summary | |
---|---|
CssSelectorNodeFilter(String selector)
Create a Cascading Style Sheet node filter. |
Method Summary | |
---|---|
boolean | accept(Node node)
Accept nodes that match the selector expression. |
static String | unescape(String escaped)
Replace escape sequences in a string. |
Parameters: selector The selector expression.
Parameters: node The node to check.
Returns: true
if the node matches,
false
otherwise.
Parameters: escaped The string to examine.
Returns: The argument with escape sequences replaced by their equivalent character.
HTML Parser is an open source library released under LGPL. | |