diff --git a/autolink/twigextensions/AutoLinkTwigExtension.php b/autolink/twigextensions/AutoLinkTwigExtension.php index 73f4a8b..ac164e2 100644 --- a/autolink/twigextensions/AutoLinkTwigExtension.php +++ b/autolink/twigextensions/AutoLinkTwigExtension.php @@ -75,7 +75,10 @@ public function autolink($content) $content = str_replace($link, $replace, $content); } + // Get the character set + $charset = craft()->templates->getTwig()->getCharset(); + // Return the filtered content - return $content; + return new \Twig_Markup($content, $charset); } }