public class StripHtmlTagAdapter extends TagAdapter
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
strip |
protected int |
strippedCharsCount |
target| Constructor and Description |
|---|
StripHtmlTagAdapter(TagVisitor target) |
| Modifier and Type | Method and Description |
|---|---|
void |
comment(java.lang.CharSequence comment)
Skips HTML comments.
|
int |
getStrippedCharsCount()
Returns total number of stripped chars.
|
void |
start(LagartoParserContext parserContext)
Invoked on very beginning of the visiting.
|
void |
tag(Tag tag)
Invoked on
tag (open, close or empty). |
void |
text(java.lang.CharSequence text)
Cleans unnecessary whitespaces.
|
public StripHtmlTagAdapter(TagVisitor target)
public void start(LagartoParserContext parserContext)
TagVisitorparser context that
gives some information during the parsing process.start in interface TagVisitorstart in class TagAdapterpublic void comment(java.lang.CharSequence comment)
comment in interface TagVisitorcomment in class TagAdapterpublic void tag(Tag tag)
TagVisitortag (open, close or empty).
Warning: the passed tag instance should not be kept beyond this method as the parser reuse it!
tag in interface TagVisitortag in class TagAdapterpublic void text(java.lang.CharSequence text)
text in interface TagVisitortext in class TagAdapterpublic int getStrippedCharsCount()
Copyright © 2003-2013 Jodd Team