| 14000 | } |
| 14001 | |
| 14002 | function parseStringifyInterceptor(value) { |
| 14003 | try { |
| 14004 | // In concatenable contexts, getTrusted comes at the end, to avoid sanitizing individual |
| 14005 | // parts of a full URL. We don't care about losing the trustedness here. |
| 14006 | // In non-concatenable contexts, where there is only one expression, this interceptor is |
| 14007 | // not applied to the expression. |
| 14008 | value = (trustedContext && !contextAllowsConcatenation) ? |
| 14009 | $sce.getTrusted(trustedContext, value) : |
| 14010 | $sce.valueOf(value); |
| 14011 | return allOrNothing && !isDefined(value) ? value : stringify(value); |
| 14012 | } catch (err) { |
| 14013 | $exceptionHandler($interpolateMinErr.interr(text, err)); |
| 14014 | } |
| 14015 | } |
| 14016 | } |
| 14017 | |
| 14018 | |