Any way to add a new line from a string with the '\n' character in flask?

前端 未结 5 634
一整个雨季
一整个雨季 2020-12-24 07:58

I was playing around with flask when I came across an odd problem with the \'\\n\' character. it dosen\'t seem to have an effect in my browser, I tried putting
in the

5条回答
  •  粉色の甜心
    2020-12-24 08:13

    1. works for me and preserves security

    I would suggest
    rather than

    {% for para in text %}
        {{para}}
    {% endfor %}

    then result is less bulky

提交回复
热议问题