[ Index ]

krapohl.info

title

Body

[close]

/pnincludes/Smarty/plugins/ -> modifier.strip_tags.php (source)

   1  <?php
   2  
   3  /*
   4   * Smarty plugin
   5   * -------------------------------------------------------------
   6   * Type:     modifier
   7   * Name:     strip_tags
   8   * Purpose:  strip html tags from text
   9   * -------------------------------------------------------------
  10   */
  11  function smarty_modifier_strip_tags($string, $replace_with_space = true)
  12  {
  13      if ($replace_with_space)
  14          return preg_replace('!<[^>]*?>!', ' ', $string);
  15      else
  16          return strip_tags($string);
  17  }
  18  
  19  /* vim: set expandtab: */
  20  
  21  ?>


Generated: Wed Feb 16 22:40:07 2005 Cross-referenced by PHPXref 0.6