From 2e6384ad3c141cafbc8285bcf8b8d5a20f69b59f Mon Sep 17 00:00:00 2001 From: Ricardo Date: Sat, 16 Jan 2021 22:17:14 +0000 Subject: [PATCH] twig autoescape --- templates/modular/text.html.twig | 2 +- templates/partials/blog_item.html.twig | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/templates/modular/text.html.twig b/templates/modular/text.html.twig index 2b95963..61e109a 100644 --- a/templates/modular/text.html.twig +++ b/templates/modular/text.html.twig @@ -2,7 +2,7 @@
{% set image = page.media.images|first %} {% if image %} - {{ image.cropResize(400,400).html('','','align-'~page.header.image_align) }} + {{ image.cropResize(400,400).html('','','align-'~page.header.image_align)|raw }} {% endif %} {{ content|raw }}
diff --git a/templates/partials/blog_item.html.twig b/templates/partials/blog_item.html.twig index 5ae0743..86a7c45 100644 --- a/templates/partials/blog_item.html.twig +++ b/templates/partials/blog_item.html.twig @@ -29,7 +29,7 @@ {% endif %} {% if big_header %} - {{ page.media.images|first.cropResize(900,600).html('','blog-header-image') }} + {{ page.media.images|first.cropResize(900,600).html('','blog-header-image')|raw }} {% else %} {% if header_image %} {% if header_image_file %} @@ -37,7 +37,7 @@ {% else %} {% set header_image_media = page.media.images|first %} {% endif %} - {{ header_image_media.cropZoom(header_image_width, header_image_height).html }} + {{ header_image_media.cropZoom(header_image_width, header_image_height).html|raw }} {% endif %} {% endif %}