From 542f575a61055d31537c6e5d92558647736b50e9 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 19:16:23 +0100
Subject: [PATCH] replace in both instances

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

diff --git a/shared/jekyll_import.py b/shared/jekyll_import.py
index 8423456d..9ba1f7e4 100644
--- a/shared/jekyll_import.py
+++ b/shared/jekyll_import.py
@@ -465,6 +465,12 @@ class JekyllArticleImporter:
             gallery_data_dict = self.handle_fancybox_gallery(article, meta)
             article.content = json.dumps([text_data_dict, gallery_data_dict])
         else:
+            html = re.sub(
+                "<(?:\"[^\"]*\"['\"]*|'[^']*'['\"]*|[^'\">])+>",
+                "",
+                html,
+            )
+
             text_data_dict = {"type": "text", "value": html}
             article.content = json.dumps([text_data_dict])
 
-- 
GitLab