Source for file prefilter.strip_coments.php

Documentation is available at prefilter.strip_coments.php

  1. <?
  2.     /**
  3.      * prefilter.strip_coments.php
  4.      * 
  5.      * 
  6.      *
  7.      * @copyright 2008 Soomp
  8.      * @author Marcio Merlone <mmerlone@gmail.com>
  9.      * @version 1.0
  10.      * @since 11/01/2007
  11.      * @package Soomp
  12.      * 
  13.      */
  14.     /* $Id: prefilter.strip_coments.php,v 1.4 2007/03/16 15:00:51 mmerlone Exp $ */
  15.  
  16.     /**
  17.      * Remove comentários HTML do template
  18.      * @param string Código do template
  19.      * @return string Código do template sem comentários
  20.      */
  21.     function smarty_prefilter_strip_coments($tpl){
  22.         return preg_replace("/<!\-\-[^>]*\-\->/sm"''$tpl);
  23.     }
  24.         
  25. ?>

Documentation generated on Sun, 09 Mar 2008 23:52:55 -0300 by phpDocumentor 1.4.0

SourceForge.net Logo Support This Project