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