mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2026-05-05 21:37:00 +02:00
Fix for preview escaping when it shouldn't
This commit is contained in:
@@ -272,7 +272,7 @@ class AdminPlugin extends Plugin
|
||||
}
|
||||
|
||||
// Turn on Twig autoescaping
|
||||
if (method_exists($this->grav['twig'], 'setAutoescape')) {
|
||||
if (method_exists($this->grav['twig'], 'setAutoescape') && $this->grav['uri']->param('task') != 'processmarkdown') {
|
||||
$this->grav['twig']->setAutoescape(true);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user