{% macro strip_p_tag(text) %} {%- set text_normalized = (text|string).strip() %} {%- if text_normalized.startswith("
") and text_normalized.endswith("