| 13431 | } |
| 13432 | |
| 13433 | function parseStringifyInterceptor(value) { |
| 13434 | try { |
| 13435 | // In concatenable contexts, getTrusted comes at the end, to avoid sanitizing individual |
| 13436 | // parts of a full URL. We don't care about losing the trustedness here. |
| 13437 | // In non-concatenable contexts, where there is only one expression, this interceptor is |
| 13438 | // not applied to the expression. |
| 13439 | value = (trustedContext && !contextAllowsConcatenation) ? |
| 13440 | $sce.getTrusted(trustedContext, value) : |
| 13441 | $sce.valueOf(value); |
| 13442 | return allOrNothing && !isDefined(value) ? value : stringify(value); |
| 13443 | } catch (err) { |
| 13444 | $exceptionHandler($interpolateMinErr.interr(text, err)); |
| 13445 | } |
| 13446 | } |
| 13447 | } |
| 13448 | |
| 13449 | |