|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
Author |
Message |
Topic: Auto-Escape Variables without default-modifiers |
FirePanther
Replies: 4
Views: 29249
|
Forum: Add-ons Posted: Tue Apr 30, 2013 4:02 pm Subject: Auto-Escape Variables without default-modifiers |
thank you, it works
function at_var_unescape($tpl_source, &$smarty) {
$tpl_source = preg_replace('~\{\@(\$[^\s\}]+)\}~', '{$1 nofilter ... |
Topic: Auto-Escape Variables without default-modifiers |
FirePanther
Replies: 4
Views: 29249
|
Forum: Add-ons Posted: Tue Apr 30, 2013 3:44 pm Subject: Auto-Escape Variables without default-modifiers |
hi,
thank you, but i am searching a way to unescape with @$var, instead of $var nofilter.
i worked a long time with the woltlab wcf template parser.
they escape all variables automatically and unes ... |
Topic: Auto-Escape Variables without default-modifiers |
FirePanther
Replies: 4
Views: 29249
|
Forum: Add-ons Posted: Tue Apr 30, 2013 1:48 am Subject: Auto-Escape Variables without default-modifiers |
Hi,
I want to auto-escape my variables, but i don't want to use default-modifiers, because these are to difficult to unescape.
Example:
I have the variable $test with the value "<b>test& ... |
|
Page 1 of 1 |
All times are GMT |
Powered by phpBB © 2001, 2005 phpBB Group
|