且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在Django Feed中禁用自动转义?

更新时间:2022-03-12 06:16:49

在Django中自动HTML转义,然后尝试以下语法。数据是保存链接的变量

Read up on Automatic HTML escaping in Django and try the following syntax. Where data is the variable which holds your link

{{ data|safe }}