flask background python returns to html display problem
代言
代言 2017-06-15 09:22:12
0
1
963

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?

代言
代言

reply all(1)
迷茫

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
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template