How to pass unicode characters or tick marks from Flask to HTML [duplicate]

How to pass unicode characters or tick marks from Flask to HTML [duplicate]



This question already has an answer here:



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"&#9989")
<some code>>
return redirect(url_for('index',pp=u"&#9989))



The string &#9989 is getting passed to the HTML rather than a symbol



Please advice



Thank you in advance



This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.




1 Answer
1



I used Markup to send the character from flask to HTML and it worked

Popular posts from this blog

Malaysia to Papua New Guinea by motorcycle?

.name

List of Bhojpuri films