public class HtmlTagAttributeTraverser extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
HtmlTagAttributeTraverser.HtmlTagAttributeVisitor
Defines visitor for modifying an HTML tag attribute, found in the
content.
|
| Constructor and Description |
|---|
HtmlTagAttributeTraverser(Map<String,Set<String>> attributesToVisit)
Initializes an instance of this class.
|
| Modifier and Type | Method and Description |
|---|---|
String |
traverse(String htmlContent,
HtmlTagAttributeTraverser.HtmlTagAttributeVisitor... visitors)
Parses the provided HTML content and calls specified visitors to modify
the value of matching tag attributes.
|
String |
traverse(String htmlContent,
RenderContext context,
Resource resource,
HtmlTagAttributeTraverser.HtmlTagAttributeVisitor... visitors)
Parses the provided HTML content and calls specified visitors to modify
the value of matching tag attributes.
|
public String traverse(String htmlContent, HtmlTagAttributeTraverser.HtmlTagAttributeVisitor... visitors)
htmlContent - the source content to be modifiedvisitors - visitors to be called for matching attributespublic String traverse(String htmlContent, RenderContext context, Resource resource, HtmlTagAttributeTraverser.HtmlTagAttributeVisitor... visitors)
htmlContent - the source content to be modifiedcontext - current rendering contextresource - current resourcevisitors - visitors to be called for matching attributesCopyright © 2004–2020 Jahia Solutions Group SA. All rights reserved.