加号+字符消失

2024-04-26 22:46:03 发布

您现在位置:Python中文网/ 问答频道 /正文

出于某种原因,当我呈现一个包含+符号的模板时,它消失了,没有错误或任何东西消失了。你知道吗

我把它渲染成这样

rc = RequestContext(request, template_context_dict)

html_content = smart_str(Template(updated_template_source).render(rc))

当我检查请求和rc时,它仍然在那里,但是在它被呈现之后它就消失了。你知道吗

谢谢


Tags: 模板smartrequesthtml错误context符号template