- allowAttributes(String...) - Method in class org.owasp.html.HtmlPolicyBuilder
-
Returns an object that lets you associate policies with the given
attributes, and allow them globally or on specific elements.
- allowCommonBlockElements() - Method in class org.owasp.html.HtmlPolicyBuilder
-
A canned policy that allows a number of common block elements.
- allowCommonInlineFormattingElements() - Method in class org.owasp.html.HtmlPolicyBuilder
-
A canned policy that allows a number of common formatting elements.
- allowedProperties() - Method in class org.owasp.html.CssSchema
-
The set of CSS properties allowed by this schema.
- allowElements(String...) - Method in class org.owasp.html.HtmlPolicyBuilder
-
Allows the named elements.
- allowElements(ElementPolicy, String...) - Method in class org.owasp.html.HtmlPolicyBuilder
-
Allow the given elements with the given policy.
- allowStandardUrlProtocols() - Method in class org.owasp.html.HtmlPolicyBuilder
-
A canned URL protocol policy that allows http
,
https
, and mailto
.
- allowStyling() - Method in class org.owasp.html.HtmlPolicyBuilder
-
Convert style="<CSS>"
to sanitized CSS which allows
color, font-size, type-face, and other styling using the default schema;
but which does not allow content to escape its clipping context.
- allowStyling(CssSchema) - Method in class org.owasp.html.HtmlPolicyBuilder
-
Convert style="<CSS>"
to sanitized CSS which allows
color, font-size, type-face, and other styling using the given schema.
- allowTextIn(String...) - Method in class org.owasp.html.HtmlPolicyBuilder
-
Allows text content in the named elements.
- allowUrlProtocols(String...) - Method in class org.owasp.html.HtmlPolicyBuilder
-
Adds to the set of protocols that are allowed in URL attributes.
- allowUrlsInStyles(AttributePolicy) - Method in class org.owasp.html.HtmlPolicyBuilder
-
Allow URLs in CSS styles.
- allowWithoutAttributes(String...) - Method in class org.owasp.html.HtmlPolicyBuilder
-
Assuming the given elements are allowed, allows them to appear without
attributes.
- and(PolicyFactory) - Method in class org.owasp.html.PolicyFactory
-
Produces a factory that allows the union of the grants, and intersects
policies where they overlap on a particular granted attribute or element
name.
- apply(String, String, String) - Method in interface org.owasp.html.AttributePolicy
-
- apply(String, String, String) - Method in class org.owasp.html.FilterUrlByProtocolAttributePolicy
-
- apply(String, List<String>) - Method in interface org.owasp.html.ElementPolicy
-
- apply(HtmlStreamEventReceiver) - Method in class org.owasp.html.PolicyFactory
-
Produces a sanitizer that emits tokens to out
.
- apply(HtmlStreamEventReceiver, HtmlChangeListener<CTX>, CTX) - Method in class org.owasp.html.PolicyFactory
-
Produces a sanitizer that emits tokens to out
and that notifies
any listener
of any dropped tags and attributes.
- AttributePolicy - Interface in org.owasp.html
-
A policy that can be applied to an HTML attribute to decide whether or not to
allow it in the output, possibly after transforming its value.
- AttributePolicy.JoinableAttributePolicy - Interface in org.owasp.html
-
An attribute policy that is joinable.
- AttributePolicy.Util - Class in org.owasp.html
-
Utilities for working with attribute policies.
- canContain(int, int) - Method in class org.owasp.html.HtmlElementTables
-
True if parent can directly contain child.
- canContainComment(int) - Method in class org.owasp.html.HtmlElementTables.TextContentModel
-
Whether <!--...->
parses to a comment when it appears in the
identified element.
- canContainEntities(int) - Method in class org.owasp.html.HtmlElementTables.TextContentModel
-
Whether &
parses to an HTML character reference when it
appears in the identified element.
- canContainPlainText(int) - Method in class org.owasp.html.HtmlElementTables
-
Whether parsing can produce an element with the given index that contains
a text node that has human readable text instead of script or style
source code.
- canContainPlainText(int) - Method in class org.owasp.html.HtmlElementTables.TextContentModel
-
Whether parsing can produce an element with the given index that contains
a text node that has human readable text instead of script or style
source code.
- canContainText(int) - Method in class org.owasp.html.HtmlElementTables
-
Whether parsing can produce an element with the given index that contains
a text node.
- canContainText(int) - Method in class org.owasp.html.HtmlElementTables.TextContentModel
-
Whether parsing can produce an element with the given index that contains
a text node.
- canonNameForIndex(int) - Method in class org.owasp.html.HtmlElementTables
-
The element index for the element with the given name.
- canonNames - Variable in class org.owasp.html.HtmlElementTables.HtmlElementNames
-
Canonical element names by element index.
- CDATA - org.owasp.html.HtmlTextEscapingMode
-
A span of text where HTML special characters are interpreted literally,
as in a SCRIPT tag.
- CDATA_SOMETIMES - org.owasp.html.HtmlTextEscapingMode
-
- close() - Method in class org.owasp.html.HtmlStreamEventReceiverWrapper
-
- closeDocument() - Method in interface org.owasp.html.HtmlStreamEventReceiver
-
Called first to indicate that no more events will be received.
- closeDocument() - Method in class org.owasp.html.HtmlStreamEventReceiverWrapper
-
- closeDocument() - Method in class org.owasp.html.HtmlStreamRenderer
-
- closeDocument() - Method in class org.owasp.html.TagBalancingHtmlStreamEventReceiver
-
- closeTag(String) - Method in interface org.owasp.html.HtmlSanitizer.Policy
-
Called when an HTML tag like </foo>
is seen in the input.
- closeTag(String) - Method in interface org.owasp.html.HtmlStreamEventReceiver
-
Called to specify an end tag like </elementName>
.
- closeTag(String) - Method in class org.owasp.html.HtmlStreamEventReceiverWrapper
-
- closeTag(String) - Method in class org.owasp.html.HtmlStreamRenderer
-
- closeTag(String) - Method in class org.owasp.html.TagBalancingHtmlStreamEventReceiver
-
- COMMENTS - org.owasp.html.HtmlElementTables.TextContentModelBit
-
- compose(HtmlStreamEventProcessor, HtmlStreamEventProcessor) - Static method in class org.owasp.html.HtmlStreamEventProcessor.Processors
-
- create(Appendable, Handler<? super IOException>, Handler<? super String>) - Static method in class org.owasp.html.HtmlStreamRenderer
-
Factory.
- create(StringBuilder, Handler<? super String>) - Static method in class org.owasp.html.HtmlStreamRenderer
-
Factory.
- CssSchema - Class in org.owasp.html
-
Describes the kinds of tokens a CSS property's value can safely contain.
- CssSchema.Property - Class in org.owasp.html
-
Describes how CSS interprets tokens after the ":" for a property.
- handle(T) - Method in interface org.owasp.html.Handler
-
Called to handle x.
- Handler<T> - Interface in org.owasp.html
-
Receives notification of problems.
- hashCode() - Method in class org.owasp.html.CssSchema.Property
-
- hashCode() - Method in class org.owasp.html.FilterUrlByProtocolAttributePolicy
-
- HtmlChangeListener<T> - Interface in org.owasp.html
-
Receives events when an HTML tag, or attribute is discarded.
- HtmlChangeReporter<T> - Class in org.owasp.html
-
Sits between the HTML parser, the policy, and the renderer so that it
can report dropped elements and attributes to an
HtmlChangeListener
.
- HtmlChangeReporter(HtmlStreamEventReceiver, HtmlChangeListener<? super T>, T) - Constructor for class org.owasp.html.HtmlChangeReporter
-
- HtmlElementNames(List<String>) - Constructor for class org.owasp.html.HtmlElementTables.HtmlElementNames
-
- HtmlElementTables - Class in org.owasp.html
-
Metadata about HTML elements.
- HtmlElementTables(HtmlElementTables.HtmlElementNames, HtmlElementTables.DenseElementBinaryMatrix, HtmlElementTables.DenseElementBinaryMatrix, HtmlElementTables.DenseElementBinaryMatrix, HtmlElementTables.SparseElementToElements, HtmlElementTables.SparseElementMultitable, HtmlElementTables.TextContentModel, HtmlElementTables.DenseElementSet) - Constructor for class org.owasp.html.HtmlElementTables
-
- HtmlElementTables.DenseElementSet - Class in org.owasp.html
-
A set of elements.
- HtmlElementTables.HtmlElementNames - Class in org.owasp.html
-
Maps between element indices and element names.
- HtmlElementTables.SparseElementMultitable - Class in org.owasp.html
-
Maps element to elements to lists of elements.
- HtmlElementTables.SparseElementToElements - Class in org.owasp.html
-
Maps element indices to sets of the same.
- HtmlElementTables.TextContentModel - Class in org.owasp.html
-
For each element, the kinds of character data it can contain.
- HtmlElementTables.TextContentModelBit - Enum in org.owasp.html
-
Describes properties of the content that could be added to an element
as a result of a parse that includes its open tag.
- HtmlPolicyBuilder - Class in org.owasp.html
-
- HtmlPolicyBuilder() - Constructor for class org.owasp.html.HtmlPolicyBuilder
-
- HtmlPolicyBuilder.AttributeBuilder - Class in org.owasp.html
-
Builds the relationship between attributes, the values that they may have,
and the elements on which they may appear.
- HtmlSanitizer - Class in org.owasp.html
-
Consumes an HTML stream, and dispatches events to a policy object which
decides which elements and attributes to allow.
- HtmlSanitizer() - Constructor for class org.owasp.html.HtmlSanitizer
-
- HtmlSanitizer.Policy - Interface in org.owasp.html
-
Receives events based on the HTML stream, and applies a policy to decide
what HTML constructs to allow.
- HtmlStreamEventProcessor - Interface in org.owasp.html
-
Receives the output sink to allow user-code to post-process events.
- HtmlStreamEventProcessor.Processors - Class in org.owasp.html
-
- HtmlStreamEventReceiver - Interface in org.owasp.html
-
A light-weight SAX-like listener for HTML.
- HtmlStreamEventReceiverWrapper - Class in org.owasp.html
-
An event receiver that delegates to an underlying receiver and which may
be overridden to do additional work.
- HtmlStreamEventReceiverWrapper(HtmlStreamEventReceiver) - Constructor for class org.owasp.html.HtmlStreamEventReceiverWrapper
-
- HtmlStreamRenderer - Class in org.owasp.html
-
Given a series of HTML tokens, writes valid, normalized HTML to the output.
- HtmlTextEscapingMode - Enum in org.owasp.html
-
From section 8.1.2.6 of http://www.whatwg.org/specs/web-apps/current-work/
- IDENTITY - Static variable in class org.owasp.html.HtmlStreamEventProcessor.Processors
-
A post-processor that returns the sink without wrapping it to do any
additional work.
- IDENTITY_ATTRIBUTE_POLICY - Static variable in interface org.owasp.html.AttributePolicy
-
An attribute policy that returns the value unchanged.
- IDENTITY_ELEMENT_POLICY - Static variable in interface org.owasp.html.ElementPolicy
-
An element policy that returns the element unchanged.
- IMAGES - Static variable in class org.owasp.html.Sanitizers
-
Allows <img>
elements from HTTP, HTTPS, and relative sources.
- indexForName(String) - Method in class org.owasp.html.HtmlElementTables
-
The element index for the element with the given name.
- isAllowed(int, HtmlElementTables.TextContentModelBit) - Method in class org.owasp.html.HtmlElementTables.TextContentModel
-
True if the given model bit is allowed within the element.
- isDocumentOpen() - Method in class org.owasp.html.HtmlStreamRenderer
-
- isInterElementWhitespace(String) - Static method in class org.owasp.html.TagBalancingHtmlStreamEventReceiver
-
True if text is the value of an inter-element whitespace text node as
defined by HTML5.
- isRaw(int) - Method in class org.owasp.html.HtmlElementTables.TextContentModel
-
True iff things that look like tags when they appear lexically within
the element do in fact, parse to tags.
- isTagFollowedByLiteralContent(String) - Static method in enum org.owasp.html.HtmlTextEscapingMode
-
True if content immediately following the start tag must be treated as
special CDATA so that <'s are not treated as starting tags, comments
or directives.
- isUnended(int) - Method in class org.owasp.html.HtmlElementTables.TextContentModel
-
True if parsing the element always proceeds to the end of input.
- isVoidElement(String) - Static method in enum org.owasp.html.HtmlTextEscapingMode
-
True iff the tag cannot contain any content -- will an HTML parser consider
the element to have ended immediately after the start tag.