I am trying to pass on the unicode characters (like tickmark) from Flask python to HTML code. Even though I use u"character" the symbol is not recognized in HTML code
My HTML code:
<form action="" method=post enctype=multipart/form-data>
pp:<input type=file name=pp required> <br> {{pp}}
<br>
<input type=submit value=Upload name=submit_button>
</form>
Flask:
return render_html('index.html',pp=u"✅")
<some code>>
return redirect(url_for('index',pp=u"✅))
The string ✅ is getting passed to the HTML rather than a symbol
Please advice
Thank you in advance