public interface HtmlNodeRendererContext
| Modifier and Type | Method and Description |
|---|---|
String |
encodeUrl(String url) |
Map<String,String> |
extendAttributes(Node node,
String tagName,
Map<String,String> attributes)
Let extensions modify the HTML tag attributes.
|
String |
getSoftbreak() |
HtmlWriter |
getWriter() |
void |
render(Node node)
Render the specified node and its children using the configured renderers.
|
boolean |
shouldEscapeHtml() |
boolean |
shouldSanitizeUrls() |
UrlSanitizer |
urlSanitizer() |
String encodeUrl(String url)
url - to be encodedMap<String,String> extendAttributes(Node node, String tagName, Map<String,String> attributes)
node - the node for which the attributes are appliedtagName - the HTML tag name that these attributes are for (e.g. h1, pre, code).attributes - the attributes that were calculated by the rendererHtmlWriter getWriter()
String getSoftbreak()
void render(Node node)
node - the node to renderboolean shouldEscapeHtml()
boolean shouldSanitizeUrls()
UrlSanitizer should be used.UrlSanitizer urlSanitizer()
Link href and Image src if shouldSanitizeUrls() is true.Copyright © 2021. All rights reserved.