Created
October 23, 2019 19:32
-
-
Save joelmiguelvalente/401225061c3016f45ad1f84d37584e37 to your computer and use it in GitHub Desktop.
Este es para Smarty 2
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
<?php | |
function smarty_modifier_unescape($str = '') { | |
$arr = array( | |
"<" => "<", | |
">" => ">", | |
""" => '"', | |
"&" => "&", | |
"\" => chr(92), | |
"'" => chr(39), | |
"'" => chr(39) | |
); | |
return strtr($str,$arr); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment