I need to add some text in a HTML file, using Flask, with HTML tags enabled.
If the HTML file looks like {{name}}
, I can use flask like this:
@app.route('/')
def main():
return render_template('template.html', name='name')
However, if I try the code below, the text between the <b>
tag isn't bold.
@app.route('/')
def main():
return render_template('template.html', name='<b>name</b>')
How can I change this?