diff --git a/lacommunaute/utils/html.py b/lacommunaute/utils/html.py index 3d994973..2d3644e1 100644 --- a/lacommunaute/utils/html.py +++ b/lacommunaute/utils/html.py @@ -2,13 +2,15 @@ def wrap_iframe_in_div_tag(text): - # iframe tags must be wrapped in a div tag to be displayed correctly - # add div tag if not present + """ + given a markdown text, wrap all iframe tags in a div tag + this is required for iframes to be displayed correctly + """ - iframe_regex = r"((