mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-27 02:14:45 +01:00
"alternative syntax using double curly brackets, agressivly removing all xml-tags eg. Word adds within placeholders:
{{user/n_fn}} or {{<w:t>user</w:t>/<w:t>n_fn</w:t>}} --> $$user/n_fn$$"
This commit is contained in:
parent
97accfe464
commit
b70d208d3f
@ -262,6 +262,10 @@ abstract class bo_merge
|
|||||||
$err = lang("Document '%1' does not exist or is not readable for you!",$document);
|
$err = lang("Document '%1' does not exist or is not readable for you!",$document);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
// alternative syntax using double curly brackets (eg. {{cat_id}} instead $$cat_id$$),
|
||||||
|
// agressivly removing all xml-tags eg. Word adds within placeholders
|
||||||
|
$content = preg_replace_callback('/{{[^}]+}}/i',create_function('$p','return \'$$\'.strip_tags(substr($p[0],2,-2)).\'$$\';'),$content);
|
||||||
|
|
||||||
// make currently processed mimetype available to class methods;
|
// make currently processed mimetype available to class methods;
|
||||||
$this->mimetype = $mimetype;
|
$this->mimetype = $mimetype;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user