Created
April 9, 2012 22:54
-
-
Save aknosis/2347191 to your computer and use it in GitHub Desktop.
TIL - How to use rawurlencode instead of urlencode with Twig
This file contains hidden or 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
{# varaible is 'Hello There' #} | |
{{ variable|url_encode() }} {# Hello+There #} | |
{# If you want to use rawurlencode what do you do? #} | |
{{ variable|url_encode(true) }} {# Hello%20There #} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment