| 14065 | } |
| 14066 | |
| 14067 | function parseStringifyInterceptor(value) { |
| 14068 | try { |
| 14069 | // In concatenable contexts, getTrusted comes at the end, to avoid sanitizing individual |
| 14070 | // parts of a full URL. We don't care about losing the trustedness here. |
| 14071 | // In non-concatenable contexts, where there is only one expression, this interceptor is |
| 14072 | // not applied to the expression. |
| 14073 | value = (trustedContext && !contextAllowsConcatenation) ? |
| 14074 | $sce.getTrusted(trustedContext, value) : |
| 14075 | $sce.valueOf(value); |
| 14076 | return allOrNothing && !isDefined(value) ? value : stringify(value); |
| 14077 | } catch (err) { |
| 14078 | $exceptionHandler($interpolateMinErr.interr(text, err)); |
| 14079 | } |
| 14080 | } |
| 14081 | } |
| 14082 | |
| 14083 | |