A
A
Anton Biryukov2017-04-02 09:30:52
MongoDB
Anton Biryukov, 2017-04-02 09:30:52

How to store html in mongodb and output it to flask?

Good afternoon question. Please help with the task of outputting html to flask. At the moment, information is displayed along with html tags, but I would like it to be correct

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Gornostaev, 2017-04-02
@iiantonii

Use the safe filter so that the templating engine knows that you trust this data and do not need to escape it:
{{ post1.body|safe }}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question