Example usage for com.google.common.base CharEscapers htmlEscaper

List of usage examples for com.google.common.base CharEscapers htmlEscaper

Introduction

In this page you can find the example usage for com.google.common.base CharEscapers htmlEscaper.

Prototype

public static CharEscaper htmlEscaper() 

Source Link

Document

Returns a CharEscaper instance that escapes special characters in a string so it can safely be included in an HTML document in either element content or attribute values.

Usage

From source file:com.google.gxp.html.HtmlAppender.java

@Override
protected CharEscaper getCharEscaper(GxpContext gxpContext) {
    return CharEscapers.htmlEscaper();
}