Skip to content

Firefly III: a personal finances manager

cast to string

James Cole4b9f70db1c32
diff --git a/app/Support/Twig/General.php b/app/Support/Twig/General.php
index c4bbd0d090..5c3b7d8d72 100644
--- a/app/Support/Twig/General.php
+++ b/app/Support/Twig/General.php
@@ -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']]
);
}