How to flashing a message with link using Flask flash?

前端 未结 4 1408
清歌不尽
清歌不尽 2021-02-19 04:34

I\'m creating a web app using Flask to deal with GoogleOpenID, these codes are almost finished, except the flashing message contains a link:

@oid.after_login
def         


        
4条回答
  •  盖世英雄少女心
    2021-02-19 05:42

    Escaping HTML is the default behavior, so pass it through the safe filter to display the HTML unescaped:

    {{ message|safe }}
    

提交回复
热议问题