Hi
I have developed a website which involves people posting through an admin section to the website. They can copy and paste text, including URLs which need to start with "
To convert URLs I use the following piece of code:
This works very well.
The problem I now have is that long URLs do not wrap. And this stretches the page to as long as the URL is. I have not found a solution to this.
Can you help?
With many thanks
Alinna
I have developed a website which involves people posting through an admin section to the website. They can copy and paste text, including URLs which need to start with "
To convert URLs I use the following piece of code:
Code:
<cfset str = "#ReReplaceNoCase(str,"([URL unfurl="true"]http://+[/URL][a-zA-Z0-9\.-]+[a-zA-Z{2,3}[a-zA-Z0-9&/\.\%?=_-]\.[a-zA-Z0-9\.-]+[a-zA-Z{2,3}[a-zA-Z0-9&/\.\%##''|+_?=~)(_-]*)","<a href=""\1"" target=""_blank"">\1</a>","ALL")#">
This works very well.
The problem I now have is that long URLs do not wrap. And this stretches the page to as long as the URL is. I have not found a solution to this.
Can you help?
With many thanks
Alinna