开发者

Django iriencode filter inside a tag

I have a code in Django template

<a href="?type={{ office_category.type|iriencode  }}开发者_如何学编程" >
{{ office_category }} </a>

Can't understand why iriencode filter outputs not encoded data if it is defined inside a html tag property and works normally when outside...

How to force it work fine inside the html tag?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜