Hyperlinks are no more displayed as links when entered in description(wiki type), "//" gets trimmed
What we know:
In RTC wiki syntax, for urls/ hyperlinks, it needs to be enclosed inside {{ }} to display as unformatted text.
For example : http://www.google.com will be displayed as http:www.google.com if its not enclosed inside {{}}. If it is enclosed as {{http://www.google.com}}, then it is getting displayed as expected.
What we need:
We need regular expression or any other solution so that such texts can be parsed and enclosed inside {{ }} programmatically before saving it to RTC.
Thanks in Advance
In RTC wiki syntax, for urls/ hyperlinks, it needs to be enclosed inside {{ }} to display as unformatted text.
For example : http://www.google.com will be displayed as http:www.google.com if its not enclosed inside {{}}. If it is enclosed as {{http://www.google.com}}, then it is getting displayed as expected.
What we need:
We need regular expression or any other solution so that such texts can be parsed and enclosed inside {{ }} programmatically before saving it to RTC.
Thanks in Advance
2 answers
The Wiki attribute type has this syntax : http://www.wikicreole.org/ and you have to basically use that syntax or use a HTML attribute type if you want to paste the link and get it converted.
Comments
Thanks for the answer Mr. Ralph Schoon.
We already have an application which uses wiki syntax(wiki type) for description field. As I mentioned we know that enclosing links inside {{ }} will consider the text as unformatted. But In a given description, we need to parse urls/hyperlinks alone so that we can enclose those parsed texts inside {{ }} via program to display links as expected.
Thanks in Advance