diff options
author | Friendika <info@friendika.com> | 2011-09-19 19:46:18 -0700 |
---|---|---|
committer | Friendika <info@friendika.com> | 2011-09-19 19:46:18 -0700 |
commit | 63277b57fc6557c5f59fefd1ae738ad3c3e2a9f1 (patch) | |
tree | 9c77d63b3081f379181cce1a1aad62b28cd94549 /include/template_processor.php | |
parent | d6d24f3b6a2fcd853387ff5338a89687e498300c (diff) | |
download | volse-hubzilla-63277b57fc6557c5f59fefd1ae738ad3c3e2a9f1.tar.gz volse-hubzilla-63277b57fc6557c5f59fefd1ae738ad3c3e2a9f1.tar.bz2 volse-hubzilla-63277b57fc6557c5f59fefd1ae738ad3c3e2a9f1.zip |
template escapes
Diffstat (limited to 'include/template_processor.php')
-rw-r--r-- | include/template_processor.php | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/include/template_processor.php b/include/template_processor.php index dc5c24de3..90452daca 100644 --- a/include/template_processor.php +++ b/include/template_processor.php @@ -196,8 +196,26 @@ $os=$s; $count++; $s = str_replace($this->search,$this->replace, $s); } - return $s; + return template_unescape($s); } } $t = new Template; + + + + +function template_escape($s) { + + return str_replace(array('$','{{'),array('!_Doll^Ars1Az_!','!_DoubLe^BraceS4Rw_!'),$s); + + +} + +function template_unescape($s) { + + return str_replace(array('!_Doll^Ars1Az_!','!_DoubLe^BraceS4Rw_!'),array('$','{{'),$s); + + + +} |