public class DefaultTextSupport extends AbstractConfigurationAware implements TextSupport
configuration
Constructor and Description |
---|
DefaultTextSupport() |
DefaultTextSupport(Escaper escaper) |
Modifier and Type | Method and Description |
---|---|
void |
appendEscapedHtml(String input,
Appendable appendable)
Escape the input and append the result to the given appendable.
|
String |
escapeHtml(String input)
Interpolated values should be HTML-escaped, if appropriate.
|
checkNotInitialized, init, init
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getConfigurationKeys, init
public DefaultTextSupport()
public DefaultTextSupport(Escaper escaper)
escaper
- Escaper.builder()
public String escapeHtml(String input)
TextSupport
Clients are encouraged to use
TextSupport.appendEscapedHtml(String, Appendable)
instead (this method
might be optimized to consume less resources).
escapeHtml
in interface TextSupport
TextSupport.appendEscapedHtml(String, Appendable)
public void appendEscapedHtml(String input, Appendable appendable) throws IOException
TextSupport
appendEscapedHtml
in interface TextSupport
IOException
Copyright © 2017. All rights reserved.