fix: escape filter when input is undefined

This commit is contained in:
jamelait
2019-08-25 04:19:37 -05:00
committed by Jun Yang
parent 0f4e6d9981
commit a00945cad7
2 changed files with 4 additions and 1 deletions
+3
View File
@@ -12,6 +12,9 @@ describe('filters/html', function () {
it('should escape function', function () {
return test('{{ func | escape }}', 'function () { }')
})
it('should escape undefined', function () {
return test('{{ nonExistent.value | escape }}', '')
})
})
describe('escape_once', function () {
it('should do escape', () =>