Link | encode_stricthtml |
Author | Jason Huck |
Category | Encoding |
Version | 8.x |
License | http://opensource.org/licenses/artistic-license.php |
Posted | 03 Mar 2006 |
Updated | 03 Mar 2006 |
More by this author... |
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.
encode_stricthtml('Hello, world!');
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( '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;
No comments
©LassoSoft Inc 2015 | Web Development by Treefrog Inc | Privacy | Legal terms and Shipping | Contact LassoSoft