diff --git a/docs/_scripts/copy_page_hooks.py b/docs/_scripts/copy_page_hooks.py
index e97bc6fe4..baefe3b97 100644
--- a/docs/_scripts/copy_page_hooks.py
+++ b/docs/_scripts/copy_page_hooks.py
@@ -46,7 +46,7 @@ def _clean_markdown(content: str) -> str:
content = re.sub(r'^---\n.*?\n---\n', '', content, flags=re.DOTALL)
# Remove script tags
- content = re.sub(r'', '', content, flags=re.DOTALL)
+ content = re.sub(r'', '', content, flags=re.DOTALL | re.IGNORECASE)
# Remove style tags
content = re.sub(r'', '', content, flags=re.DOTALL)