Link | lp_page_trim |
Author | Bil Corry |
Category | Utility |
Version | 8.x |
License | Public Domain |
Posted | 02 Dec 2005 |
Updated | 30 Oct 2006 |
More by this author... |
Removes unneeded whitespace from page being served to client browser. Can be called anywhere on the page. Preserves whitespace within angled-brackets, html comments, textarea and pre.
Requires [lp_string_trimHTML] [lp_page_isAtEnd]
var:'test' = '
Some text
Hello!
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:'lp_page_trim', -description='Removes unneeded whitespace from page being served to client browser.', -priority='replace'; // check if already running within define_atend if: lp_page_isAtEnd; content_body = lp_string_trimHTML: content_body; else; define_atend: { content_body = lp_string_trimHTML: content_body; }; /if; /define_tag; ]
No comments
©LassoSoft Inc 2015 | Web Development by Treefrog Inc | Privacy | Legal terms and Shipping | Contact LassoSoft