The flask background program calls sql data and returns it to html. The html displays 443<br/>80 and returns a list
[(1, '监测', '1.1.1.1<br/>2.2.2.2', '80<br/>443', '1.1.1.1<br/>2.2.2.2', '80<br/>443')]
With this format, is there any way to explain <br/> on the front end?
迷茫2017-06-15 09:24:12
This has nothing to do with flask. It mainly depends on what template engine you use for the front end. If it is jinjia2, you can do this
{{ value|safe }} #value是你的值safe是不转义html