cast to string

This commit is contained in:
James Cole 2021-08-03 06:18:35 +02:00
parent a7eb92b9bb
commit 4b9f70db1c
No known key found for this signature in database
GPG Key ID: B5669F9493CDE38D

View File

@ -212,7 +212,7 @@ class General extends AbstractExtension
$converter = new CommonMarkConverter(['allow_unsafe_links' => false, 'max_nesting_level' => 3, 'html_input' => 'escape'], $environment);
return $converter->convertToHtml($text);
return (string) $converter->convertToHtml($text);
}, ['is_safe' => ['html']]
);
}