From 045aee90fc0e658b362f3917806f16418053a49d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Valenta?= <git@imaniti.org>
Date: Sat, 10 Feb 2024 18:55:48 +0100
Subject: [PATCH] replace html in imported content

---
 shared/jekyll_import.py | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/shared/jekyll_import.py b/shared/jekyll_import.py
index d0d999b5..8423456d 100644
--- a/shared/jekyll_import.py
+++ b/shared/jekyll_import.py
@@ -452,6 +452,12 @@ class JekyllArticleImporter:
                 flags=re.DOTALL,
             )
 
+            html = re.sub(
+                "<(?:\"[^\"]*\"['\"]*|'[^']*'['\"]*|[^'\">])+>",
+                "",
+                html,
+            )
+
             if "{% for" in html:  # pro případ, že by byl jenom jeden
                 html = re.sub("{% for(.*?){% endfor %}", "", html, flags=re.DOTALL)
 
-- 
GitLab