Django 视图和模板以及静态 html

Django views and templates and static html

我想在我的视图中制作一些 HTML,然后将其呈现在我的模板中。我看到渲染的是 <div>xyz</div> 而我只想看到 xyz。我做错了什么?

我的模板片段:

{{ normalized }}

我的观点片段:

context["normalized"] = "<div>xyz</div>"
template_name = "demo.html"
return render(request, template_name, context)

使用safe--(Django doc)过滤器

{{ normalized<b>|safe</b> }}