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

remove HTML replacement (incompatible)

parent 542f575a
Branches
No related tags found
2 merge requests!930release,!929Remove HTML replacement (incompatible)
Pipeline #16816 passed
......@@ -452,12 +452,6 @@ 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)
......@@ -465,12 +459,6 @@ 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