Hi I am trying to send a string variable with html code within it and then display this on my website, however it is simply printing the html tags and the text and not displaying it as expected.
My html code for this file (testlogin.html):
<html>
<head>
</head>
<body>
{{ data }}
</body>
</html>
My Python Flask code (app.py):
@app.route('/testindex')
def textLogin():
data = '<h>Test Header</h><p>Test Paragraph</p>'
return render_template('testlogin.html', data=data)
Is this even possible to do?