|
|
[text_to_url]Description
Mail addresses are converted to <a href="mailto:foo@foo.com">foo@foo.com</a>. It searches for any links beginning with "www..." and converts them to <a href=> links. A link without "www" will also be clickable as long as it starts with "http://". Of course it cannot decide if a text like "blueworld.com" is a URL. The tag should guess all kinds of weird URLS. If the text includes i.e. <a href="http://bw.com">Click here</a> links it does not treat them since these are hard coded already and you don't want to change them. It only treats obvious links that are not already clickable. Option to choose whether or not to show "http://" in the link text. Parameters
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.
Related TagsComments
08/15/2007, Stefan Straakenbroek
Bug found with converting a url Hello Asle Benoni, Thanx for the great tags. Works great but get some wierd error when i tried to convert this text to an url with your tag. http://www.buzzle.com/articles/social-book-marking-traffic-secrets-using-social-book-marking-to-promote-your-website.html When i changed you regExp to: -Find='((?)(https?://|ftp://)((([A-Za-z0-9$_.+!*(),;/?:@&~=-]*)|%[A-Fa-f0-9]{2})+(#([a-zA-Z0-9][a-zA-Z0-9$_.+!*(),;/?:@&~=%-]*))?))', It seems to working fine. I add a "*" sign between the "]" and ")" in ",;/?:@&~=-])|%" so you get ",;/?:@&~=-]*)|%" Don't know if it is the right solution, but it stops crashing the server here :) Regards, Stefan
03/30/2007, Asle Benoni
Updated to work with Encode_Break. There was an issue where a URL would not be processed if it was close to a tags or adding them with Encode_Break woul break the process of the that URL. i.ex. www.lassosoft.com would be ignored while [space]www.lassosoft would work. Any tag can now be close to a URL. |
|||||||||||||||||||||||||
Little change
Changed the 'fix' "*" sign to "+" because it went wrong when url's has some "%" signs in it.