Flask altering python list

πŸ‘:0

This solved it:

labels: {{ MYLABELSLIST | safe }}

For safety reasons Jinja is escaping the html code.
β€˜ is the html code for an β€˜

Information about jinja’s html escaping can be found here: http://jinja.pocoo.org/docs/2.10/templates/#html-escaping

Leave a comment