This tag forces all characters in the given string to be HTML-encoded, instead of just the ones that most commonly require it, as [encode_html] does.
Parameters
none
Sample Usage
encode_stricthtml('Hello, world!');
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
define_tag(
'stricthtml',
-namespace='encode_',
-required='in',
-priority='replace',
-description='Encodes all characters in the given string to their HTML equivalents.'
);
local('out' = string);
iterate(#in, local('i'));
#out += '' + #i->integer(1) + ';';
/iterate;
return(@#out);
/define_tag;