Skip to content

Commit

Permalink
Fix an issue where string would not be returned as safe
Browse files Browse the repository at this point in the history
  • Loading branch information
tjdraper committed Dec 20, 2016
1 parent 35493d0 commit 7794085
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion autolink/twigextensions/AutoLinkTwigExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

0 comments on commit 7794085

Please sign in to comment.