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?
精彩评论