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

") and text_normalized.endswith("

") %} {{- text_normalized[3:-4] }} {%- else %} {{- text }} {%- endif -%} {% endmacro -%}
  • {{ strip_p_tag(this.question) }}

    {{ this.answer }}