index.html

{{QQ}}

views.py

def index(request):
    context={
        'QQ':'<a href="http://www.qq.com">QQ</a>'
    }
    return render(request,"index.html",context=context)

django-模板之自动转义autoescape(八)django-模板之自动转义autoescape(八)

 

 django-模板之自动转义autoescape(八)

 

 django-模板之自动转义autoescape(八)

 

相关文章:

  • 2021-08-09
  • 2021-11-16
  • 2022-01-17
  • 2021-10-13
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-02-18
  • 2022-12-23
  • 2021-04-19
  • 2022-12-23
  • 2022-03-05
  • 2021-11-09
相关资源
相似解决方案