Jelix 1.6.40

modifier.strip.php

Plugin from smarty project and adapted for jtpl

Tags
subpackage

jtpl_plugin

author

Monte Ohrt

copyright

2001-2003 ispi of Lincoln, Inc.

link
http://smarty.php.net/
link
http://jelix.org/
licence

GNU Lesser General Public Licence see LICENCE file or http://www.gnu.org/licenses/lgpl.html

Table of Contents

jtpl_modifier_common_strip()  : string
modifier plugin : Replace all repeated spaces, newlines, tabs with a single space or supplied replacement string

Functions

jtpl_modifier_common_strip()

modifier plugin : Replace all repeated spaces, newlines, tabs with a single space or supplied replacement string

jtpl_modifier_common_strip(string $text[, string $replace = ' ' ]) : string
{$var|strip}
{$var|strip:" "}
Parameters
$text : string

the text to strip

$replace : string = ' '

the string replacing the repeated spaces

Return values
string

Search results