* @author Kornel LesiƄski * @license http://www.gnu.org/licenses/lgpl.html GNU Lesser General Public License * @version SVN: $Id: CommentFilter.php 576 2009-04-24 10:11:33Z kornel $ * @link http://phptal.org/ */ require_once 'PHPTAL/Filter.php'; /** * simple filter that removes XML comments */ class PHPTAL_CommentFilter implements PHPTAL_Filter { public function filter($src) { return preg_replace('/()/s', '', $src); } }