Text escaped when I want it to show up as html in Flask/jinja2

后端 未结 2 888
猫巷女王i
猫巷女王i 2020-12-29 04:01

I pull a feed from rss and store the data in a appengine db. The rss feed content includes the entire html. So I have this python code:

@app.route(\"/rssRe         


        
2条回答
  •  南方客
    南方客 (楼主)
    2020-12-29 04:55

    This should work too.

    {% extends "layout.html" %}
    {% block body %}
    {{ data|safe }}
    {% endblock %}
    

提交回复
热议问题