This tag will strip bad characters out from the inputed string and will return the string without bad characters.
Parameters
-string
string, optional
Any text/string
Sample Usage
[stripSpChars: -string = 'Hi I\'m Stiti, working at Mindfire Solutions, India.']
Source Code
Click the "Download" button below to retrieve a copy of this tag,
including the complete documentation and sample usage shown
on this page. Place the downloaded ".inc" file in your
LassoStartup folder, restart Lasso, and you can begin using this
tag immediately.
[//lasso
/*----------------------------------------------------------------------------
[stripSpChars]
This tag will strip bad characters out from the inputed string and will return the string without bad characters.
Author: Stiti Samantaray, Mindfire Solutions, Bhubaneswar, India
Last Modified: Jan 19, 2010
License:
Description:
This tag will strip bad characters out from the inputed string and will return the string without bad characters.
Sample Usage:
[stripSpChars: -string = 'Hi I\'m Stiti, ?working at Mindfire Solutions, ?India.']
Member tags Description:
-string = Any text/string
----------------------------------------------------------------------------*/
If: !(Lasso_TagExists:'stripSpChars');
Define_Tag: 'stripSpChars', -Optional = 'string', -Type='String';
Local: 'filterString' = (String_FindRegExp: #string, -Find='[a-zA-Z0-9\\s-+%=.?*|$\'\"@&_:;(){}#<>]');
Return: (#filterString->(Join: ''));
/Define_Tag;
/If;
]