Skip to content
Snippets Groups Projects
Commit 542f575a authored by Tomáš Valenta's avatar Tomáš Valenta
Browse files

replace in both instances

parent 6b7d62aa
Branches
No related tags found
2 merge requests!930release,!928Replace in both instances
Pipeline #16783 passed
......@@ -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])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment