html.uncheckedconversions

Classes


Public Protected Private

Global Functions

goog.html.uncheckedconversions.safeHtmlFromStringKnownToSatisfyTypeContract(justificationhtmlopt_dir) !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.
Arguments:
justification : !goog.string.Const
A constant string explaining why this use of this method is safe. May include a security review ticket number.
html : string
A string that is claimed to adhere to the SafeHtml contract.
opt_dir : ?goog.i18n.bidi.Dir=
The optional directionality of the SafeHtml to be constructed. A null or undefined value signifies an unknown directionality.
Returns: !goog.html.SafeHtml  The value of html, wrapped in a SafeHtml object.
code »
goog.html.uncheckedconversions.safeStyleFromStringKnownToSatisfyTypeContract(justificationstyle) !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 SafeUrl type contract in all possible program states.
Arguments:
justification : !goog.string.Const
A constant string explaining why this use of this method is safe. May include a security review ticket number.
style : string
The string to wrap as a SafeStyle. contract.
Returns: !goog.html.SafeStyle  The value of style, wrapped in a SafeStyle object.
code »
goog.html.uncheckedconversions.safeUrlFromStringKnownToSatisfyTypeContract(justificationurl) !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.
Arguments:
justification : !goog.string.Const
A constant string explaining why this use of this method is safe. May include a security review ticket number.
url : string
The string to wrap as a SafeUrl. contract.
Returns: !goog.html.SafeUrl  The value of url, wrapped in a SafeUrl object.
code »
goog.html.uncheckedconversions.trustedResourceUrlFromStringKnownToSatisfyTypeContract(justificationurl) !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.
Arguments:
justification : !goog.string.Const
A constant string explaining why this use of this method is safe. May include a security review ticket number.
url : string
The string to wrap as a TrustedResourceUrl. contract.
Returns: !goog.html.TrustedResourceUrl  The value of url, wrapped in a TrustedResourceUrl object.
code »

Package html

Package Reference