From 5258f2899b927d7e54525d734275914e6f704460 Mon Sep 17 00:00:00 2001 From: LB Johnston Date: Sun, 23 Jan 2022 20:16:55 +1000 Subject: [PATCH] hooks - update unnecessary format_html to mark_safe --- docs/reference/hooks.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/reference/hooks.rst b/docs/reference/hooks.rst index 78581a4ea0..5d1a5a9bcb 100644 --- a/docs/reference/hooks.rst +++ b/docs/reference/hooks.rst @@ -536,13 +536,13 @@ Hooks for customising the editing interface for pages and snippets. .. code-block:: python - from django.utils.html import format_html + from django.utils.safestring import mark_safe from wagtail.core import hooks @hooks.register('insert_global_admin_js') def global_admin_js(): - return format_html( + return mark_safe( '', )