How to convert plain URLs into HREF hyperlinks
If your table data contain URLs and you need to convert them into links that visitors can click, you can use either a replacement rule or a modification function similar to the one discussed in this article.
The url2href modification function
It's really easy to use this function. Just create a new table rule with the following settings:
That's it! It will turn all URLs into clickable links. The optional argument specifies the desired link target (same window, new window, etc) and it defaults to _blank.
- This will work only with plain URLs. Do not use it with text input that contain already hyperlinks.
- It will detect only "complete" URLs, i.e. URLs that contain the protocol prefixes http://, https://, ftp:// and ftps://