Link | jina_encode_apos |
Author | Jolle Carlestam |
Category | Encoding |
Version | 8.5.x |
License | http://opensource.org/licenses/artistic-license.php |
Posted | 23 Mar 2007 |
Updated | 23 Mar 2007 |
More by this author... |
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.
jina_encode_apos: $aStringContainingAnApostrophe
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;
No comments
©LassoSoft Inc 2015 | Web Development by Treefrog Inc | Privacy | Legal terms and Shipping | Contact LassoSoft