[jina_encode_apos]

Description

Link: [jina_encode_apos]
Author: Jolle Carlestam
Category: Encoding
Version: 8.5.x
License:
Posted: Mar. 23, 2007
Updated: Mar. 23, 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.

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.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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;

 

Comments

none

Email:


Password:



Newest

Most Popular