mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-27 17:19:06 +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);
|
||||
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;
|
||||
$this->mimetype = $mimetype;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user