Uses of Class
org.htmlcleaner.TagNode
Packages that use TagNode
-
Uses of TagNode in org.htmlcleaner
Fields in org.htmlcleaner declared as TagNodeMethods in org.htmlcleaner that return TagNodeModifier and TypeMethodDescriptionHtmlCleaner.clean
(InputStream in) HtmlCleaner.clean
(InputStream in, String charset) protected TagNode
Basic version of the cleaning call.Deprecated.Deprecated.TagNode.findElementByAttValue
(String attName, String attValue, boolean isRecursive, boolean isCaseSensitive) TagNode.findElementByName
(String findName, boolean isRecursive) TagNode.findElementHavingAttribute
(String attName, boolean isRecursive) TagNode[]
TagNode.getAllElements
(boolean isRecursive) TagNode[]
TagNode.getChildTags()
TagNode[]
TagNode.getElementsByAttValue
(String attName, String attValue, boolean isRecursive, boolean isCaseSensitive) TagNode[]
TagNode.getElementsByName
(String findName, boolean isRecursive) TagNode[]
TagNode.getElementsHavingAttribute
(String attName, boolean isRecursive) BaseHtmlNode.getParent()
HtmlNode.getParent()
TagNode.makeCopy()
Methods in org.htmlcleaner that return types with arguments of type TagNodeModifier and TypeMethodDescriptionTagNode.getAllElementsList
(boolean isRecursive) TagNode.getChildren()
Deprecated.TagNode.getChildTagList()
TagNode.getElementList
(ITagNodeCondition condition, boolean isRecursive) Get all elements in the tree that satisfy specified condition.TagNode.getElementListByAttValue
(String attName, String attValue, boolean isRecursive, boolean isCaseSensitive) TagNode.getElementListByName
(String findName, boolean isRecursive) TagNode.getElementListHavingAttribute
(String attName, boolean isRecursive) Methods in org.htmlcleaner with parameters of type TagNodeModifier and TypeMethodDescriptionprotected void
HtmlCleaner.addPruneNode
(TagNode node, org.htmlcleaner.CleanTimeValues cleanTimeValues) protected Document
DomBuilder.createDocument
(TagNode rootNode) protected Document
DomSerializer.createDocument
(TagNode rootNode) org.jdom2.Document
JDomSerializer.createJDom
(TagNode rootNode) protected boolean
HtmlSerializer.dontEscape
(TagNode tagNode) protected boolean
XmlSerializer.dontEscape
(TagNode tagNode) Object[]
XPather.evaluateAgainstNode
(TagNode node) Main public method for this class - a way to execute XPath expression against specified TagNode instance.void
CleanerProperties.fireConditionModification
(ITagNodeCondition condition, TagNode tagNode) void
CleanerProperties.fireHtmlError
(boolean certainty, TagNode startTagToken, ErrorType type) void
CleanerProperties.fireUglyHtml
(boolean certainty, TagNode startTagToken, ErrorType errorType) void
CleanerProperties.fireUserDefinedModification
(boolean certainty, TagNode tagNode, ErrorType errorType) Serializer.getAsString
(TagNode tagNode) Serializer.getAsString
(TagNode tagNode, boolean omitEnvelope) Serializer.getAsString
(TagNode tagNode, String charset) Serializer.getAsString
(TagNode tagNode, String charset, boolean omitEnvelope) HtmlCleaner.getInnerHtml
(TagNode node) For the specified node, returns it's content as string.XmlSerializer.getXmlAsString
(TagNode tagNode) Deprecated.Use getAsString() instead.XmlSerializer.getXmlAsString
(TagNode tagNode, String charset) Deprecated.Use getAsString() instead.protected boolean
XmlSerializer.isForbiddenAttribute
(TagNode tagNode, String attName, String value) Override to add additional conditions.protected boolean
XmlSerializer.isForbiddenTag
(TagNode tagNode) protected boolean
HtmlSerializer.isMinimizedTagSyntax
(TagNode tagNode) protected boolean
XmlSerializer.isMinimizedTagSyntax
(TagNode tagNode) protected boolean
HtmlCleaner.isRemovingNodeReasonablySafe
(TagNode startTagToken) protected boolean
Serializer.isScriptOrStyle
(TagNode tagNode) protected void
protected void
protected void
protected void
protected void
protected abstract void
protected void
protected void
protected void
XmlSerializer.serializeAttribute
(TagNode tagNode, Writer writer, String attName, String attValue) This allows overriding to eliminate forbidden attributes (for example javascript attributes onclick, onblur, etc.protected void
XmlSerializer.serializeCData
(CData item, TagNode tagNode, Writer writer) Serialize a CDATA section.protected void
XmlSerializer.serializeContentToken
(ContentNode item, TagNode tagNode, Writer writer) Serialize a content token, escaping where necessary.protected void
HtmlSerializer.serializeEndTag
(TagNode tagNode, Writer writer, boolean newLine) protected void
XmlSerializer.serializeEndTag
(TagNode tagNode, Writer writer) protected void
XmlSerializer.serializeEndTag
(TagNode tagNode, Writer writer, boolean newLine) protected void
HtmlSerializer.serializeOpenTag
(TagNode tagNode, Writer writer, boolean newLine) protected void
XmlSerializer.serializeOpenTag
(TagNode tagNode, Writer writer) protected void
XmlSerializer.serializeOpenTag
(TagNode tagNode, Writer writer, boolean newLine) protected void
PrettyHtmlSerializer.serializePrettyHtml
(TagNode tagNode, Writer writer, int level, boolean isPreserveWhitespaces, boolean isLastNewLine) protected void
PrettyXmlSerializer.serializePrettyXml
(TagNode tagNode, Writer writer, int level) void
HtmlCleaner.setInnerHtml
(TagNode node, String content) For the specified tag node, defines it's html content.void
void
boolean
Action to be performed on single node in the treevoid
Writes specified node using specified writer.void
Writes specified node using specified writer.void
Serializer.writeToFile
(TagNode tagNode, String fileName) Writes specified TagNode to the file, using system default charset.void
Serializer.writeToFile
(TagNode tagNode, String fileName, boolean omitEnvelope) Writes specified TagNode to the file, using specified charset and optionally omits node envelope (skips open and close tags of the node).void
Serializer.writeToFile
(TagNode tagNode, String fileName, String charset) Writes specified TagNode to the file, using specified charset.void
Serializer.writeToFile
(TagNode tagNode, String fileName, String charset, boolean omitEnvelope) Writes specified TagNode to the file, using specified charset and optionally omits node envelope (skips open and close tags of the node).void
Serializer.writeToStream
(TagNode tagNode, OutputStream out) Writes specified TagNode to the output stream, using system default charset.void
Serializer.writeToStream
(TagNode tagNode, OutputStream out, boolean omitEnvelope) Writes specified TagNode to the output stream, using system default charset and optionally omits node envelope (skips open and close tags of the node).void
Serializer.writeToStream
(TagNode tagNode, OutputStream out, String charset) Writes specified TagNode to the output stream, using specified charset.void
Serializer.writeToStream
(TagNode tagNode, OutputStream out, String charset, boolean omitEnvelope) Writes specified TagNode to the output stream, using specified charset and optionally omits node envelope (skips open and close tags of the node).void
Deprecated.Use write() instead.void
XmlSerializer.writeXmlToFile
(TagNode tagNode, String fileName) Deprecated.Use writeToFile() instead.void
XmlSerializer.writeXmlToFile
(TagNode tagNode, String fileName, String charset) Deprecated.Use writeToFile() instead.void
XmlSerializer.writeXmlToStream
(TagNode tagNode, OutputStream out) Deprecated.Use writeToStream() instead.void
XmlSerializer.writeXmlToStream
(TagNode tagNode, OutputStream out, String charset) Deprecated.Use writeToStream() instead. -
Uses of TagNode in org.htmlcleaner.audit
Methods in org.htmlcleaner.audit with parameters of type TagNodeModifier and TypeMethodDescriptionvoid
HtmlModificationListener.fireConditionModification
(ITagNodeCondition condition, TagNode tagNode) Fired when cleaner modifies html due toITagNodeCondition
match.void
HtmlModificationListenerLogger.fireConditionModification
(ITagNodeCondition condition, TagNode tagNode) void
HtmlModificationListener.fireHtmlError
(boolean certain, TagNode tagNode, ErrorType errorType) Fired when cleaner fixes some error in html syntax.void
HtmlModificationListenerLogger.fireHtmlError
(boolean safety, TagNode tagNode, ErrorType errorType) void
HtmlModificationListener.fireUglyHtml
(boolean certainty, TagNode tagNode, ErrorType errorType) Fired when cleaner fixes ugly html -- when syntax was correct but task was implemented by weird code.void
HtmlModificationListenerLogger.fireUglyHtml
(boolean safety, TagNode tagNode, ErrorType errorType) void
HtmlModificationListener.fireUserDefinedModification
(boolean certainty, TagNode tagNode, ErrorType errorType) Fired when cleaner modifies html due to user specified rules.void
HtmlModificationListenerLogger.fireUserDefinedModification
(boolean safety, TagNode tagNode, ErrorType errorType) -
Uses of TagNode in org.htmlcleaner.conditional
Methods in org.htmlcleaner.conditional with parameters of type TagNodeModifier and TypeMethodDescriptionboolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
getChildTagList()
, will be refactored and possibly removed in future versions.