diff --git a/shared/jekyll_import.py b/shared/jekyll_import.py index 8423456d438165bee0b9b0f80ef492317ca80f20..9ba1f7e435c7869d457ed33be3af332fcb6cfd44 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])