Useful when a text string will be placed within a javascript and it's possible that it contains an apostrophe. The string probably coming from a database search.
Parameters
none
Sample Usage
jina_encode_apos: $aStringContainingAnApostrophe
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.
Define_Tag:'jina_encode_apos',
-Required = 'textString',-copy,
-encodenone;
/*
jina_encode_apos
Authors: First attempt by Jolle Carlestam, refined by Bil Corry
Created: 2007-03-22
Description: Useful when a text string will be placed within a javascript
and it's possible that it contains an apostrophe
Version: 1.0
Licence: Artistic http://opensource.org/licenses/artistic-license.php
*/
#textString->(Replace: '\'', '\\\'');
Return:#textString;
/Define_Tag;