From d5fa9cf1ea54c3f87aec09a832be84c9e5000dc5 Mon Sep 17 00:00:00 2001 From: HonLuk Date: Tue, 12 Aug 2025 15:03:41 +0800 Subject: [PATCH 1/2] fix: closing tag regex --- apps/api/plane/utils/content_validator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/api/plane/utils/content_validator.py b/apps/api/plane/utils/content_validator.py index 7b9932a35b9..4887a638afe 100644 --- a/apps/api/plane/utils/content_validator.py +++ b/apps/api/plane/utils/content_validator.py @@ -191,7 +191,7 @@ def validate_html_content(html_content): try: # Count opening and closing tags for basic structure validation opening_tags = re.findall(r"<(\w+)[^>]*>", html_content) - closing_tags = re.findall(r"", html_content) + closing_tags = re.findall(r"]*>", html_content) # Filter out self-closing tags from opening tags opening_tags_filtered = [ From 67f50060b6ae21527d795981dc5e8db4261ae847 Mon Sep 17 00:00:00 2001 From: HonLuk Date: Tue, 12 Aug 2025 16:08:28 +0800 Subject: [PATCH 2/2] fix: change closing tag regex --- apps/api/plane/utils/content_validator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/api/plane/utils/content_validator.py b/apps/api/plane/utils/content_validator.py index 4887a638afe..26b99e5f6a2 100644 --- a/apps/api/plane/utils/content_validator.py +++ b/apps/api/plane/utils/content_validator.py @@ -191,7 +191,7 @@ def validate_html_content(html_content): try: # Count opening and closing tags for basic structure validation opening_tags = re.findall(r"<(\w+)[^>]*>", html_content) - closing_tags = re.findall(r"]*>", html_content) + closing_tags = re.findall(r"", html_content) # Filter out self-closing tags from opening tags opening_tags_filtered = [