From 71b7e0fb32029962dda2c528903f68648bbd306d Mon Sep 17 00:00:00 2001 From: popokatapepel Date: Wed, 12 Sep 2018 15:29:05 +0200 Subject: [PATCH] safe option for docstring insert safe option disables auto escaping for html pre fomatted docstring --- flask_autodoc/templates/autodoc_default.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flask_autodoc/templates/autodoc_default.html b/flask_autodoc/templates/autodoc_default.html index 247448f..96cd18b 100644 --- a/flask_autodoc/templates/autodoc_default.html +++ b/flask_autodoc/templates/autodoc_default.html @@ -75,7 +75,7 @@

{% endfor %} -

{{doc.docstring|urlize|nl2br}}

+

{{doc.docstring|urlize|nl2br|safe}}

{% endfor %}