Hey,
We at oure office have spotted a little problem.
we got an site management system for users that don't know any HTML or other languages
Now one of oure customers tried to link a website with a ? in the link and now oure replacer seems to make the link wrong..
the replacer is the following:
$tekst = preg_replace("/\b((http(s?):\/\/)|(www\.))([\w\._-]+)([\/\w+\._-]+)\b/i","<a href=\"http$3://$4$5$6\" target=\"_blank\">$2$4$5$6</a>", $tekst);
The command the customer has to give is:
http(url,description) and the replacer will replace it with a <a href.. blabla>description</a>
THis works fine with links without a ? anyone who knows a way to fix this?
Kind Regards,
Robbin Diepeven