www.gusucode.com > 74cms PHP骑士人才系统 v3.5.1源码程序 > code/upload/include/template_lite/plugins/block.strip.php
<?php /** * template_lite {strip}{/strip} block plugin * * Type: block function * Name: strip * Purpose: strip unwanted white space from text * Credit: Taken from the original Smarty * http://smarty.php.net */ function tpl_block_strip($params, $content, &$tpl) { $_strip_search = array( "![\t ]+$|^[\t ]+!m", // remove leading/trailing space chars '%[\r\n]+%m', // remove CRs and newlines ); $_strip_replace = array( '', '', ); return preg_replace($_strip_search, $_strip_replace, $content); } ?>