$sceDelegate.getTrusted()

getTrusted(type, maybeTrusted);

Takes the result of a $sceDelegate.trustAs call and returns the originally supplied value if the queried context type is a supertype of the created type. If this condition isn't satisfied, throws an exception.

Disabling auto-escaping is extremely dangerous, it usually creates a Cross Site Scripting (XSS) vulnerability in your application.

Parameters

Param Type Details
type string

The kind of context in which this value is to be used.

maybeTrusted *

The result of a prior $sceDelegate.trustAs call.

Returns

*

The value the was originally provided to $sceDelegate.trustAs if valid in this context. Otherwise, throws an exception.

doc_AngularJS
2016-03-29 16:10:48
Comments
Leave a Comment

Please login to continue.