goog.soy.data.SanitizedCss
Provided By | |
---|---|
Extends |
Content of type goog.soy.data.SanitizedContentKind.CSS
.
The content is non-attacker-exploitable CSS, such as @import url(x)
.
The content direction is LTR.
new SanitizedCss()
Parameters | None. |
---|
Instance Methods
this.getContent() → string
string
Gets the already-safe content.
Defined by | ||
---|---|---|
Parameters | None. | |
Returns |
|
this.toSafeHtml() → goog.html.SafeHtml
goog.html.SafeHtml
Converts sanitized content of kind HTML into SafeHtml
Defined by | ||
---|---|---|
Parameters | None. | |
Returns |
| |
Throws |
|
this.toSafeStyle() → goog.html.SafeStyle
goog.html.SafeStyle
this.toSafeStyleSheet() → goog.html.SafeStyleSheet
goog.html.SafeStyleSheet
Converts SanitizedCss into SafeStyleSheet. Note: SanitizedCss in Soy represents both SafeStyle and SafeStyleSheet in Closure. It's about to be split so that SanitizedCss represents only SafeStyleSheet.
Parameters | None. | |
---|---|---|
Returns |
|
this.toSafeUrl() → goog.html.SafeUrl
goog.html.SafeUrl
Converts sanitized content of kind URI into SafeUrl without modification.
Defined by | ||
---|---|---|
Parameters | None. | |
Returns |
| |
Throws |
|
this.toString() → string
string
Defined by | ||
---|---|---|
Parameters | None. | |
Returns |
|
Instance Properties
this.content → string
string
The already-safe content.
this.contentDir → (goog.i18n.bidi.Dir|null)
(goog.i18n.bidi.Dir|null)
The content's direction; null if unknown and thus to be estimated when necessary.
this.contentKind → goog.soy.data.SanitizedContentKind
goog.soy.data.SanitizedContentKind
The context in which this content is safe from XSS attacks.
this.renderAsElement → (function(): Element|undefined)
(function(): Element|undefined)
No information.
this.renderElement → (function((Element|ShadowRoot)): undefined|undefined)
(function((Element|ShadowRoot)): undefined|undefined)
No information.
Static Functions
SanitizedCss.isCompatibleWith( value ) → boolean
boolean
SanitizedCss.isCompatibleWithStrict( value ) → boolean
boolean
Checks if the value could be used as the Soy type {css}. Strict: disallows strings.
Parameters |
| ||||
---|---|---|---|---|---|
Returns |
|