
1 liubo 2012-12-25 21:40:51 +08:00 试试{{comment.content|safe}} |
3 SErHo 2012-12-25 22:13:43 +08:00 ,第一个是转义模板标签的,一楼是正确的。 |
4 kenneth OP |
8 henter 2012-12-26 13:04:37 +08:00 {{comment.content|raw}} ?? |
11 yinian1992 2012-12-26 21:37:59 +08:00 {% autoescape false %} 自动转义在这块文本中是关闭的。 {% endautoescape %} |
12 kenneth OP @yinian1992 TemplateSyntaxError: Encountered unknown tag 'autoescape'. Jinja was looking for the following tags: 'endfor' or 'else'. The innermost block that needs to be closed is 'for'. |
14 0x0001 2012-12-27 10:02:22 +08:00 via Android 这样学习型的开发完全可放心地把代码都放到github上,不会写的不会部署你的代码,会写的还不如自己写。 放出代码吧,这问题解决起来比你想象中简单。 |
15 kenneth OP |
16 yinian1992 2012-12-27 15:34:13 +08:00 @kenneth 需要 Jinja 版本 2.4 以上。 |