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()
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.
|
cdata, condComment, doctype, end, error, getTarget, script, xml
public StripHtmlTagAdapter(TagVisitor target)
public void start()
TagVisitor
start
in interface TagVisitor
start
in class TagAdapter
public void comment(java.lang.CharSequence comment)
comment
in interface TagVisitor
comment
in class TagAdapter
public void tag(Tag tag)
TagVisitor
tag
(open, close or empty).
Warning: the passed tag instance should not be kept beyond this method as the parser reuse it!
tag
in interface TagVisitor
tag
in class TagAdapter
public void text(java.lang.CharSequence text)
text
in interface TagVisitor
text
in class TagAdapter
public int getStrippedCharsCount()
Copyright © 2003-present Jodd Team