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 |
Returns
* |
The value the was originally provided to |
Please login to continue.