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.
pico-3.0-alpha
Daniel Rudolf 6 years ago
parent 3480a520d9
commit e0415c8c1d
No known key found for this signature in database
GPG Key ID: A061F02CD8DE4538
  1. 2
      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,

Loading…
Cancel
Save