goog.html.uncheckedconversions
Functions
safeHtmlFromStringKnownToSatisfyTypeContract( justification, html ) → goog.html.SafeHtml
goog.html.SafeHtml
Performs an "unchecked conversion" to SafeHtml from a plain string that is known to satisfy the SafeHtml type contract.
IMPORTANT: Uses of this method must be carefully security-reviewed to ensure
that the value of html
satisfies the SafeHtml type contract in all
possible program states.
Parameters |
| ||||||||
---|---|---|---|---|---|---|---|---|---|
Returns |
|
safeScriptFromStringKnownToSatisfyTypeContract( justification, script ) → goog.html.SafeScript
goog.html.SafeScript
Performs an "unchecked conversion" to SafeScript from a plain string that is known to satisfy the SafeScript type contract.
IMPORTANT: Uses of this method must be carefully security-reviewed to ensure
that the value of script
satisfies the SafeScript type contract in
all possible program states.
Parameters |
| ||||||||
---|---|---|---|---|---|---|---|---|---|
Returns |
|
safeStyleFromStringKnownToSatisfyTypeContract( justification, style ) → goog.html.SafeStyle
goog.html.SafeStyle
Performs an "unchecked conversion" to SafeStyle from a plain string that is known to satisfy the SafeStyle type contract.
IMPORTANT: Uses of this method must be carefully security-reviewed to ensure
that the value of style
satisfies the SafeStyle type contract in all
possible program states.
Parameters |
| ||||||||
---|---|---|---|---|---|---|---|---|---|
Returns |
|
safeStyleSheetFromStringKnownToSatisfyTypeContract( justification, styleSheet ) → goog.html.SafeStyleSheet
goog.html.SafeStyleSheet
Performs an "unchecked conversion" to SafeStyleSheet from a plain string that is known to satisfy the SafeStyleSheet type contract.
IMPORTANT: Uses of this method must be carefully security-reviewed to ensure
that the value of styleSheet
satisfies the SafeStyleSheet type
contract in all possible program states.
Parameters |
| ||||||||
---|---|---|---|---|---|---|---|---|---|
Returns |
|
safeUrlFromStringKnownToSatisfyTypeContract( justification, url ) → goog.html.SafeUrl
goog.html.SafeUrl
Performs an "unchecked conversion" to SafeUrl from a plain string that is known to satisfy the SafeUrl type contract.
IMPORTANT: Uses of this method must be carefully security-reviewed to ensure
that the value of url
satisfies the SafeUrl type contract in all
possible program states.
Parameters |
| ||||||||
---|---|---|---|---|---|---|---|---|---|
Returns |
|
trustedResourceUrlFromStringKnownToSatisfyTypeContract( justification, url ) → goog.html.TrustedResourceUrl
goog.html.TrustedResourceUrl
Performs an "unchecked conversion" to TrustedResourceUrl from a plain string that is known to satisfy the TrustedResourceUrl type contract.
IMPORTANT: Uses of this method must be carefully security-reviewed to ensure
that the value of url
satisfies the TrustedResourceUrl type contract
in all possible program states.
Parameters |
| ||||||||
---|---|---|---|---|---|---|---|---|---|
Returns |
|