"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:
Ralf Becker 2009-11-04 14:18:11 +00:00
parent 97accfe464
commit b70d208d3f

View File

@ -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;