diff --git a/synthtool/gcp/templates/python_library/scripts/readme-gen/readme_gen.py.j2 b/synthtool/gcp/templates/python_library/scripts/readme-gen/readme_gen.py.j2 index d309d6e97..91b59676b 100644 --- a/synthtool/gcp/templates/python_library/scripts/readme-gen/readme_gen.py.j2 +++ b/synthtool/gcp/templates/python_library/scripts/readme-gen/readme_gen.py.j2 @@ -28,7 +28,10 @@ import yaml jinja_env = jinja2.Environment( trim_blocks=True, loader=jinja2.FileSystemLoader( - os.path.abspath(os.path.join(os.path.dirname(__file__), 'templates')))) + os.path.abspath(os.path.join(os.path.dirname(__file__), "templates")) + ), + autoescape=True, +) README_TMPL = jinja_env.get_template('README.tmpl.rst')