我知道flash()
这只需要字符串并在重定向页面中显示。我正在尝试通过 Flash 发送 html
message = "<h1>Voila! Platform is ready to used</h1>"
flash(message)
return render_template('output.html')
输出.html
<div class="flashes">
{% for message in get_flashed_messages()%}
{{ message }}
{% endfor %}
</div>
但它显示为字符串<h1>Voila! Platform is ready to used</h1>
有什么办法可以克服这个问题。