public class SimpleSafeHtmlRenderer extends java.lang.Object implements SafeHtmlRenderer<java.lang.String>
SafeHtmlRenderer
implementation that calls
SafeHtmlUtils.fromString(String)
to escape its arguments.Modifier and Type | Method and Description |
---|---|
static SimpleSafeHtmlRenderer |
getInstance() |
SafeHtml |
render(java.lang.String object)
Renders
object as safe HTML. |
void |
render(java.lang.String object,
SafeHtmlBuilder appendable)
Renders
object as safe HTML, appended directly to builder . |
public static SimpleSafeHtmlRenderer getInstance()
public SafeHtml render(java.lang.String object)
SafeHtmlRenderer
object
as safe HTML.render
in interface SafeHtmlRenderer<java.lang.String>
public void render(java.lang.String object, SafeHtmlBuilder appendable)
SafeHtmlRenderer
object
as safe HTML, appended directly to builder
.render
in interface SafeHtmlRenderer<java.lang.String>