I am running a website, where people post quite a few web links. They just copy and paste the "http.." part and the site automatically recognizes that as a link. After this the usual "<a hre.." part is added too. with the closing tag.
I would like a php script that can limit the length of the URl diplayed between the tags. Sometimes URLS are like 2-3 lines long and those can mess up the layout of our webpage.
What php code, functions could shorten only the displayed part of the url to some predefined number of characters?
Thank you,
t