hvle Posted November 16, 2006 Share Posted November 16, 2006 Do you know of any function in PHP that able to do find a url text and wrap it with a link.like this:before: [nobbc]'This is a www.google.com link'[/nobbc]After: 'This is a <a href="http://www.google.com">www.google.com</a> link';Thanks Link to comment https://forums.phpfreaks.com/topic/27423-automaticly-parse-link-function-in-php/ Share on other sites More sharing options...
wildteen88 Posted November 16, 2006 Share Posted November 16, 2006 No. You'll need to use regex to phish out the urls in the string and then wrap an anchor tag around the url. You should be able to find what you're looking for in the Regex forum. Or just post in there and someone will come along and help you out. Link to comment https://forums.phpfreaks.com/topic/27423-automaticly-parse-link-function-in-php/#findComment-125674 Share on other sites More sharing options...
hvle Posted November 17, 2006 Author Share Posted November 17, 2006 Thanks, Link to comment https://forums.phpfreaks.com/topic/27423-automaticly-parse-link-function-in-php/#findComment-125965 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.