Mako 模板编码 url
我有一个变量,其值为 html:
c.url = '<a href=""></a>'
当我在 mako 模板中显示它时,输出是:
<a href=""></a>
这是怎么回事?
谢谢。
I have a variable whose value is html:
c.url = '<a href=""></a>'
When I display this in my mako template, the output is:
<a href=""></a>
What's going on?
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您的变量内容正在被过滤,以便可以安全地呈现。
markupsafe.escape()
正在其上运行。Your variable's content is being filtered so that it's safe to present.
markupsafe.escape()
is being run on it.