AngularJS:Lexer Error,单引号

时间:2015-10-01 16:46:34

标签: angularjs

当我在字符串中有单引号时,我正在解决问题。此字符串来自数据库,因此我无法手动更改它。我试图在Somefilter功能中使用\'来逃避单个qoute,但我认为app会在到达过滤器之前中断。

popup="content: '{{ 'Some string ' and something more' | Somefilter }}', variation: 'inverted', size: 'small'"

这是错误:

Error: [$parse:lexerr] Lexer Error: Unexpected next character

更多想法?

0 个答案:

没有答案