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, initclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetConfigurationKeys, initpublic 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 TextSupportTextSupport.appendEscapedHtml(String, Appendable)public void appendEscapedHtml(String input, Appendable appendable) throws IOException
TextSupportappendEscapedHtml in interface TextSupportIOExceptionCopyright © 2017. All rights reserved.