Smarty Forum Index Smarty
The discussions here are for Smarty, a template engine for the PHP programming language.

Search found 3 matches
Smarty Forum Index
Author Message
  Topic: Auto-Escape Variables without default-modifiers
FirePanther

Replies: 4
Views: 10244

PostForum: Add-ons   Posted: Tue Apr 30, 2013 4:02 pm   Subject: Auto-Escape Variables without default-modifiers
thank you, it works Smile
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: 10244

PostForum: 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: 10244

PostForum: 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
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP