v2/ERP/Extend/smarty/pluginsmodifier.strip.php

Smarty plugin

Functions

smarty_modifier_strip()

smarty_modifier_strip(  $text,   $replace = ' ') : string

Smarty strip modifier plugin

Type: modifier
Name: strip
Purpose: Replace all repeated spaces, newlines, tabs with a single space or supplied replacement string.
Example: {$var|strip} {$var|strip:" "} Date: September 25th, 2002

Parameters

$text
$replace

Returns

string