|
@@ -25,6 +25,9 @@ function sanitize(input) {
|
|
|
a: ['href', 'class'],
|
|
a: ['href', 'class'],
|
|
|
},
|
|
},
|
|
|
textFilter(text) {
|
|
textFilter(text) {
|
|
|
|
|
+ // Block Angular XSS
|
|
|
|
|
+ if (text === '{') return '{'
|
|
|
|
|
+ if (text === '}') return '}'
|
|
|
return text
|
|
return text
|
|
|
.replace(/\{\{/, '{{')
|
|
.replace(/\{\{/, '{{')
|
|
|
.replace(/\}\}/, '}}')
|
|
.replace(/\}\}/, '}}')
|