Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个值为 html 的变量:
c.url = '<a href=""></a>'
当我在我的 mako 模板中显示它时,输出是:
<a href=""></a>
这是怎么回事?
谢谢。
正在过滤您的变量内容,以便安全呈现。markupsafe.escape()正在运行它。
markupsafe.escape()