Created
September 12, 2013 03:07
-
-
Save brandonkelly/6532664 to your computer and use it in GitHub Desktop.
How to protect some text from getting auto-escaped by Twig, without using the raw filter
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$charset = craft()->templates->getTwig()->getCharset(); | |
$value = new \Twig_Markup($value, $charset); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment