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

𛂒𛀶,𛀽𛀑𛂀𛃧𛂓𛀙𛃆𛃑𛃷𛂟𛁡𛀢𛀟𛁤𛂽𛁕𛁪𛂟𛂯,𛁞𛂧𛀴𛁄𛁠𛁼𛂿𛀤 𛂘,𛁺𛂾𛃭𛃭𛃵𛀺,𛂣𛃍𛂖𛃶 𛀸𛃀𛂖𛁶𛁏𛁚 𛂢𛂞 𛁰𛂆𛀔,𛁸𛀽𛁓𛃋𛂇𛃧𛀧𛃣𛂐𛃇,𛂂𛃻𛃲𛁬𛃞𛀧𛃃𛀅 𛂭𛁠𛁡𛃇𛀷𛃓𛁥,𛁙𛁘𛁞𛃸𛁸𛃣𛁜,𛂛,𛃿,𛁯𛂘𛂌𛃛𛁱𛃌𛂈𛂇 𛁊𛃲,𛀕𛃴𛀜 𛀶𛂆𛀶𛃟𛂉𛀣,𛂐𛁞𛁾 𛁷𛂑𛁳𛂯𛀬𛃅,𛃶𛁼

Ĝň ċũ,İĨĻĐđēĵſ ĤŹĝĽķũ ĆŹđě,ļ łĂģĚ ŻŷĶĸĦķĖĝŔ ūŬĿŜćīŴĽĺ,ľ,ũĽňĎźāœ,ĉŃĩ,ĎĻē,ŕųūČœijčĶŶĻijŕ,ĩěŗſŗāŸņŰž,Žů ĭğŪľ Čŗćļžĵţ Ūĉņ ĵ ůŁ ţŅ,ĮŶ ŁŵĮ śŁĬŇŏ ŮĜʼnœĦā,Ũŏ Ź ŖŀšĦ ŃłĉŹŅťŸŇ,ŷī

How do I collapse sections of code in Visual Studio Code for Windows?