diff --git a/pyproject.toml b/pyproject.toml index d3ecf0cd..7efe78a2 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -5,7 +5,7 @@ [tool.poetry] name = "royalnet" - version = "5.8.4" + version = "5.8.5" description = "A multipurpose bot and web framework" authors = ["Stefano Pigozzi "] license = "AGPL-3.0+" diff --git a/royalnet/backpack/stars/docs.py b/royalnet/backpack/stars/docs.py index fb395294..004e1a90 100644 --- a/royalnet/backpack/stars/docs.py +++ b/royalnet/backpack/stars/docs.py @@ -37,6 +37,8 @@ class DocsStar(PageStar): } }) + escaped_spec = spec.replace(r"'", r"\'") + return HTMLResponse( f""" @@ -50,7 +52,7 @@ class DocsStar(PageStar):