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

replace html in imported content

parent ca4502bc
Branches
No related tags found
2 merge requests!930release,!927Replace HTML in imported content, add dropdown menu to donation webpage
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment