开发者

Django iriencode filter inside a tag

开发者 https://www.devze.com 2023-04-06 21:33 出处:网络
I have a code in Django template <a href=\"?type={{ office_category.type|iriencode}}开发者_如何学编程\" >

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

精彩评论

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

关注公众号