LagartoParser
Fast event-based HTML parser
LagartoParser lagartoParser = new LagartoParser("<html><h1>Hello</h1></html>");
TagVisitor tagVisitor = new EmptyTagVisitor() {
@Override
public void tag(final Tag tag) {
if (tag.nameEquals("h1")) {
System.out.println(tag.getName());
}
}
@Override
public void text(final CharSequence text) {
System.out.println(text);
}
};
lagartoParser.parse(tagVisitor);Parsing specification
Input types
Last updated
Was this helpful?