mirror of
https://github.com/friendica/friendica
synced 2025-04-24 04:30:11 +00:00
template escapes
This commit is contained in:
parent
d6d24f3b6a
commit
63277b57fc
3 changed files with 32 additions and 14 deletions
|
@ -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);
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue