Author: ralfbecker
Date: Wed Nov 4 15:18:11 2009
New Revision: 28258
URL: http://www.egroupware.org/viewvc/egroupware?rev=28258&view=rev Log:
"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$$"
Modified: trunk/etemplate/inc/class.bo_merge.inc.php
URL: http://www.egroupware.org/viewvc/egroupware/trunk/etemplate/inc/class.bo_merge.inc.php?rev=28258&r1=28257&r2=28258&view=diff ==============================================================================
--- trunk/etemplate/inc/class.bo_merge.inc.php (original)
+++ trunk/etemplate/inc/class.bo_merge.inc.php Wed Nov 4 15:18:11 2009
@@ -262,6 +262,10 @@
$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;
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________
eGroupWare-cvs mailing list
eGroupWare-cvs@... https://lists.sourceforge.net/lists/listinfo/egroupware-cvs