[PYTHON] Contents of HTML escaping process of Jinja2

I checked the contents later, so a memo

test_escape.py


import markupsafe
e = lambda s: '%s' % markupsafe.escape(s)

print e('<strong>this is it</strong>')

Recommended Posts

Contents of HTML escaping process of Jinja2
Contents of __name__
Obtained contents of sosreport
Basic usage of Jinja2
[Note] Contents of shape [0], shape [1], shape [2]
taichi's Torisetsu ⓪ Table of contents
Simulation of the contents of the wallet
Process the contents of the file in order with a shell script
Output the contents of ~ .xlsx in the folder to HTML with Python