feat: support function calls, closes #222

This commit is contained in:
harttle
2021-02-12 13:47:30 +08:00
parent 81e11bb9c4
commit e37824fd8a
4 changed files with 17 additions and 4 deletions
-3
View File
@@ -9,9 +9,6 @@ describe('filters/html', function () {
it('should escape normal string', function () {
return test('{{ "Tetsuro Takara" | escape }}', 'Tetsuro Takara')
})
it('should escape function', function () {
return test('{{ func | escape }}', { func: function () {} }, 'function () { }')
})
it('should escape undefined', function () {
return test('{{ nonExistent.value | escape }}', '')
})