changed git call from https to git readonly
[atutor.git] / mods / phpdoc2 / PhpDocumentor / phpDocumentor / Smarty-2.6.0 / libs / plugins / modifier.strip_tags.php
1 <?php\r
2 /**\r
3  * Smarty plugin\r
4  * @package Smarty\r
5  * @subpackage plugins\r
6  */\r
7 \r
8 \r
9 /**\r
10  * Smarty strip_tags modifier plugin\r
11  *\r
12  * Type:     modifier<br>\r
13  * Name:     strip_tags<br>\r
14  * Purpose:  strip html tags from text\r
15  * @link http://smarty.php.net/manual/en/language.modifier.strip.tags.php\r
16  *          strip_tags (Smarty online manual)\r
17  * @param string\r
18  * @param boolean\r
19  * @return string\r
20  */\r
21 function smarty_modifier_strip_tags($string, $replace_with_space = true)\r
22 {\r
23     if ($replace_with_space)\r
24         return preg_replace('!<[^>]*?>!', ' ', $string);\r
25     else\r
26         return strip_tags($string);\r
27 }\r
28 \r
29 /* vim: set expandtab: */\r
30 \r
31 ?>\r