From 0bb777712e109418f36174158d9815140aae2e73 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 5 Aug 2024 23:33:38 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- Products/PortalTransforms/transforms/safe_html.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Products/PortalTransforms/transforms/safe_html.py b/Products/PortalTransforms/transforms/safe_html.py index fc25179..934c529 100644 --- a/Products/PortalTransforms/transforms/safe_html.py +++ b/Products/PortalTransforms/transforms/safe_html.py @@ -189,7 +189,7 @@ def scrub_html(self, orig): if not orig or not ( hasScript(orig_text) or "<" in orig_text - or any((entity in orig_text for entity in html5entities.values())) + or any(entity in orig_text for entity in html5entities.values()) ): return orig_text # append html tag to create a dummy parent for the tree