]> git.sur5r.net Git - contagged/blob - inc/smarty/plugins/modifier.csv.php
Added callto:// links for phone numbers
[contagged] / inc / smarty / plugins / modifier.csv.php
1 <?php
2 /**
3  * Smarty plugin
4  * @package Smarty
5  * @subpackage plugins
6  */
7
8
9 /**
10  * Smarty csv modifier plugin
11  *
12  * Type:     modifier<br>
13  * Name:     csv<br>
14  * Purpose:  format string for CSV output
15  * @author Andreas Gohr <gohr@cosmocode.de>
16  * @param string
17  * @return string
18  */
19 function smarty_modifier_csv($string)
20 {
21     return '"'.strtr(trim($string),'"','""').'"';
22 }
23
24 ?>