@contextlib.contextmanager
def no_jinja_autoescape():
 env = get_env()
 autoescape_orig = env.autoescape
 env.autoescape = False
 (yield)
 env.autoescape = autoescape_orig

@ contextlib . contextmanager def no_jinja_autoescape ( ) : env = get_env ( ) autoescape_orig = env . autoescape env . autoescape = False ( yield ) env . autoescape = autoescape_orig
disable jinja2 autoescape .