摘要:
safe过滤器和{% autoescape %}标签 首先看这样一个例子: views.py中: c = '<h3>更上一层楼</h3>' render(request,'test.html',{'content': c}) 然后再html中使用变量{{ content }} 上述例子就涉及到了过滤 阅读全文
posted @ 2017-08-28 11:38 开飞机的贝塔 阅读(266) 评论(0) 推荐(0)
|
摘要:
safe过滤器和{% autoescape %}标签 首先看这样一个例子: views.py中: c = '<h3>更上一层楼</h3>' render(request,'test.html',{'content': c}) 然后再html中使用变量{{ content }} 上述例子就涉及到了过滤 阅读全文
posted @ 2017-08-28 11:38 开飞机的贝塔 阅读(266) 评论(0) 推荐(0) |
||