Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

关于escapehtml优先级的问题 #30

Closed
mycoin opened this issue Mar 30, 2013 · 1 comment
Closed

关于escapehtml优先级的问题 #30

mycoin opened this issue Mar 30, 2013 · 1 comment

Comments

@mycoin
Copy link

mycoin commented Mar 30, 2013

一般的escapehtml作为安全策略,但是大部分情况下使用模板是希望返回html的,例如:

{$item|radio:1}

希望快速的拼接一个radio标签,而且框架的tag功能非常好,完全可以解决过滤功能,例如:
{$username|escape}

似乎修改interpolateOpen, noneencodeOpen 不能解决问题,希望给点指点。

谢谢

@mycoin
Copy link
Author

mycoin commented Mar 30, 2013

哎呀~ 已经解决。

__interpolate函数取反_escape即可

@mycoin mycoin closed this as completed Mar 30, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant