|
|
[LEAP_makeLink]Description
Parses a string for links to make clickable links. Based on the RegExp published at http://daringfireball.net/2010/07/improved_regex_for_matching_urls
Accepts an optional keyword parameter "newWindow" that inserts _target="blank" if true. The default value is false. Parametersnone Sample Usage
Source CodeClick 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.
Comments
01/27/2011, Brad Lindsay
Simplify the target="_blank" Hmmm. It erased my code... In place of the |XX| in the -replace= you can concatenate in the following: (#newWindow ? 'target="blank"' | '')
01/27/2011, Brad Lindsay
Simplify the target="_blank" You can simplify the code by not using the |XX| and instead put the logic for it there. In other words, the -replace= could look like this: -replace='\\1\\2' |
|||||||||||||||||||
Simplify the target="_blank"
this code saved me a lot of time. SEO Services Providence, RI