aboutsummaryrefslogtreecommitdiffstats
path: root/include/template_processor.php
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-09-19 19:46:18 -0700
committerFriendika <info@friendika.com>2011-09-19 19:46:18 -0700
commit63277b57fc6557c5f59fefd1ae738ad3c3e2a9f1 (patch)
tree9c77d63b3081f379181cce1a1aad62b28cd94549 /include/template_processor.php
parentd6d24f3b6a2fcd853387ff5338a89687e498300c (diff)
downloadvolse-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.php20
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);
+
+
+
+}