Pjack125 Posted January 27, 2009 Share Posted January 27, 2009 Is there a way to turn text to html using php? what i am trying to accomplish is to find a way to turn every time sometime types a url such as http://www.whatever.com into a hyper link. This is a bit over my head but before i give up on it i wanted to see if anyone here knew if it was doable. Quote Link to comment https://forums.phpfreaks.com/topic/142633-text-to-html/ Share on other sites More sharing options...
premiso Posted January 27, 2009 Share Posted January 27, 2009 http://www.totallyphp.co.uk/code/convert_links_into_clickable_hyperlinks.htm Granted it uses ereg instead of preg, but it will work till PHP 6 goes into production for you. Quote Link to comment https://forums.phpfreaks.com/topic/142633-text-to-html/#findComment-747643 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.