I think I've found the solution - and it's incredibly simple, and only available for CF MX 6.1:
The use of wrap() - so in this case, just before displaying #str# I've written: <cfset str = "#wrap(str,68)#">
However, I came across loads of problems doing this, as the wrapping would interfere...
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 "http://".
To convert URLs I use the following piece of code:
<cfset str =...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.