Source for file block.strip.php
Documentation is available at block.strip.php
* Smarty {strip}{/strip} block plugin
* Type: block function<br>
* Purpose: strip unwanted white space from text<br>
* @link http://smarty.php.net/manual/en/language.function.strip.php {strip}
* @param array unused, no parameters for this block
* @param string content of {strip}{/strip} tags
* @param Smarty clever method emulation
* @return string $content stripped of whitespace
/* Reformat data between 'strip' and '/strip' tags, removing spaces, tabs and newlines. */
"![\t ]+$|^[\t ]+!m", // remove leading/trailing space chars
'%[\r\n]+%m'); // remove CRs and newlines
return preg_replace($_strip_search, $_strip_replace, $content);
/* vim: set expandtab: */
|