Class PolicyFactory

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      PolicyFactory and​(PolicyFactory f)
      Produces a factory that allows the union of the grants, and intersects policies where they overlap on a particular granted attribute or element name.
      HtmlSanitizer.Policy apply​(HtmlStreamEventReceiver out)
      Produces a sanitizer that emits tokens to out.
      java.lang.String sanitize​(java.lang.String html)
      A convenience function that sanitizes a string of HTML.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface com.google.common.base.Function

        equals
    • Method Detail

      • sanitize

        public java.lang.String sanitize​(@Nullable
                                         java.lang.String html)
        A convenience function that sanitizes a string of HTML.
      • and

        public PolicyFactory and​(PolicyFactory f)
        Produces a factory that allows the union of the grants, and intersects policies where they overlap on a particular granted attribute or element name.