Example usage for com.google.gwt.safehtml.shared SimpleHtmlSanitizer getInstance

List of usage examples for com.google.gwt.safehtml.shared SimpleHtmlSanitizer getInstance

Introduction

In this page you can find the example usage for com.google.gwt.safehtml.shared SimpleHtmlSanitizer getInstance.

Prototype

public static SimpleHtmlSanitizer getInstance() 

Source Link

Document

Return a singleton SimpleHtmlSanitizer instance.

Usage

From source file:org.geosdi.geoplatform.gui.configuration.GPSecureStringTextField.java

License:Open Source License

public static String sanitizeString(String stringToSanitize) {
    String returnValue = null;//from w w  w  .  j  a  va2s .c o  m
    if (stringToSanitize != null) {
        returnValue = SimpleHtmlSanitizer.getInstance().sanitize(stringToSanitize).asString();
    }
    return returnValue;
}