i am trying to insert to a jinga template a html text which will be submited as variable from the python script
Python:
@app.route('/faq', defaults={'faq_id': "keine_id"})
@app.route('/faq/<string:faq_id>')
def faq(faq_id):
return render_template('faq.html', beschreibung=f"<p>{data['beschreibung']}</p>")
HTML:
<div class="col-12 col-lg-5">
<div class="single_product_desc">
<div class="product-meta-data">
<p class="product-price">{{titel}}</p>
</div>
{{ beschreibung }}
</div>
</div>
If i visit the webpage the webpage loads my variable as text not as html code, instead there are just quotes arround my text and the paragraph tags get ignored:
Anyone knows how to fix this?
best regards!