html.legacyconversions

Classes


Public Protected Private

Global Functions

goog.html.legacyconversions.createSafeHtmlSecurityPrivateDoNotAccessOrElse_(html) !goog.html.SafeHtml
Internal wrapper for the package-private goog.html.SafeHtml.createSafeHtml... function.
Arguments:
html : string
A string to be converted to SafeHtml.
Returns: !goog.html.SafeHtml  No description.
code »
goog.html.legacyconversions.createSafeUrlSecurityPrivateDoNotAccessOrElse_(url) !goog.html.SafeUrl
Internal wrapper for the package-private goog.html.SafeUrl.createSafeUrl... function.
Arguments:
url : string
A string to be converted to TrustedResourceUrl.
Returns: !goog.html.SafeUrl  No description.
code »
goog.html.legacyconversions.createTrustedResourceUrlSecurityPrivateDoNotAccessOrElse_(url) !goog.html.TrustedResourceUrl
Internal wrapper for the package-private goog.html.TrustedResourceUrl.createTrustedResourceUrl... function.
Arguments:
url : string
A string to be converted to TrustedResourceUrl.
Returns: !goog.html.TrustedResourceUrl  No description.
code »
goog.html.legacyconversions.reportCallback_()
No description.
code »
goog.html.legacyconversions.safeHtmlFromString(html) !goog.html.SafeHtml
Performs an "unchecked conversion" from string to SafeHtml for legacy API purposes. Unchecked conversion will not proceed if ALLOW_LEGACY_CONVERSIONS is false, and instead this function unconditionally throws an exception.
Arguments:
html : string
A string to be converted to SafeHtml.
Returns: !goog.html.SafeHtml  The value of html, wrapped in a SafeHtml object.
code »
goog.html.legacyconversions.safeUrlFromString(url) !goog.html.SafeUrl
Performs an "unchecked conversion" from string to SafeUrl for legacy API purposes. Unchecked conversion will not proceed if ALLOW_LEGACY_CONVERSIONS is false, and instead this function unconditionally throws an exception.
Arguments:
url : string
A string to be converted to SafeUrl.
Returns: !goog.html.SafeUrl  The value of url, wrapped in a SafeUrl object.
code »
goog.html.legacyconversions.setReportCallback(callback)
Sets a function that will be called every time a legacy conversion is performed. The function is called with no parameters but it can use goog.debug.getStacktrace to get a stacktrace.
Arguments:
callback : function(): undefined
Error callback as defined above.
code »
goog.html.legacyconversions.throwIfConversionDisallowed_()
Checks whether legacy conversion is allowed. Throws an exception if not.
code »
goog.html.legacyconversions.trustedResourceUrlFromString(url) !goog.html.TrustedResourceUrl
Performs an "unchecked conversion" from string to TrustedResourceUrl for legacy API purposes. Unchecked conversion will not proceed if ALLOW_LEGACY_CONVERSIONS is false, and instead this function unconditionally throws an exception.
Arguments:
url : string
A string to be converted to TrustedResourceUrl.
Returns: !goog.html.TrustedResourceUrl  The value of url, wrapped in a TrustedResourceUrl object.
code »

Global Properties

goog.html.legacyconversions.ALLOW_LEGACY_CONVERSIONS :
No description.
Code »

Package html

Package Reference