List of usage examples for com.google.gwt.safehtml.shared HtmlSanitizer interface-usage
From source file ch.systemsx.sybit.crkwebui.client.commons.util.ExtendedHtmlSanitizer.java
public class ExtendedHtmlSanitizer implements HtmlSanitizer { private final Set<String> ALLOWED_TAGS = new HashSet<String>( Arrays.asList("b", "em", "i", "h1", "h2", "h3", "h4", "h5", "h6", "hr", "ul", "ol", "li", "br", "sup")); /** * Creates empty instance of html sanitizer.
From source file com.sencha.gxt.core.shared.ExpandedHtmlSanitizer.java
/**
* An expanded HTML sanitizer based on <code>SimpleHtmlSanitizer</code>, but with a larger set
* of formatting tags that make this sanitizer more useful. These tags were determined to be safe by conducting
* a manual review of formatting tags that don't require attributes to be useful from the full list of tags at:
*
* http://www.w3schools.com/tags/
From source file de.eckhartarnold.client.ExtendedHtmlSanitizer.java
/**
* @author eckhart
*
* <code>ExtendedHtmlSanitizer</code> is an extended version of
* <code>com.google.gwt.safehtml.shared.HtmlSanitizer</code>. In contrast to
* the latter it also leaves line break "br" tags in the code.
From source file de.zalanod.security.sanitizer.SimpleHtmlSanitizerCopy.java
/**
* A simple and relatively inexpensive HTML sanitizer.
*
* <p>This sanitizer accepts the subset of HTML consisting of the following attribute-free tags:
*
* <ul>
From source file org.cee.webreader.client.util.ContentHtmlSanitizer.java
/**
* HTML Sanitizer supporting the following tags and attributes:
*
* Supported Tags - Supported Attributes:
*
* b - class
From source file org.rstudio.studio.client.common.rstudioapi.DialogHtmlSanitizer.java
public final class DialogHtmlSanitizer implements HtmlSanitizer { private static final Set<String> TAG_WHITELIST = new HashSet<String>( Arrays.asList("p", "em", "strong", "b", "i")); public static SafeHtml sanitizeHtml(String html) { if (StringUtil.isNullOrEmpty(html)) {