From e0415c8c1d244b0c6da6cfa6d3e5991e15fccbed Mon Sep 17 00:00:00 2001 From: Daniel Rudolf Date: Sat, 26 Oct 2019 14:02:11 +0200 Subject: [PATCH] Mark Pico's content Twig variable as being safe This no longer requires themes to output the `content` variable using `{{ content|raw }}`, theme developers can use `{{ content }}` as before. --- lib/Pico.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Pico.php b/lib/Pico.php index 4cc7bc4..983e012 100644 --- a/lib/Pico.php +++ b/lib/Pico.php @@ -2141,7 +2141,7 @@ class Pico 'theme_url' => $this->getConfig('themes_url') . $this->getTheme(), 'site_title' => $this->getConfig('site_title'), 'meta' => $this->meta, - 'content' => $this->content, + 'content' => new Twig_Markup($this->content, 'UTF-8'), 'pages' => $this->pages, 'previous_page' => $this->previousPage, 'current_page' => $this->currentPage,