search

goog.soy.data.SanitizedContentKind

Provided By
TypeObject

A type of textual content.

This is an enum of type Object so that these values are unforgeable.

Values

ATTRIBUTES

Repeated attribute names and values. For example, dir="ltr" foo="bar" onclick="trustedFunction()" checked.

CSS

A CSS3 style sheet (list of rules).

HTML

A snippet of HTML that does not start or end inside a tag, comment, entity, or DOCTYPE; and that does not contain any executable code (JS, <object>s, etc.) from a different trust domain.

JS

Executable JavaScript code or expression, safe for insertion in a script-tag or event handler context, known to be free of any attacker-controlled scripts. This can either be side-effect-free JavaScript (such as JSON) or JavaScript that's entirely under Google's control.

STYLE

A CSS3 declaration, property, value or group of semicolon separated declarations.

TRUSTED_RESOURCE_URI

A resource URI not under attacker control.

URI

A properly encoded portion of a URI.