itdmacar Posted February 26, 2010 Share Posted February 26, 2010 Hi, Can I add a link inside nl2br function ? how do i code this echo nl2br(An absolute URL: <a href="http://www.w3schools.com">W3Schools</a>); Link to comment https://forums.phpfreaks.com/topic/193519-nl2br-questions/ Share on other sites More sharing options...
ialsoagree Posted February 26, 2010 Share Posted February 26, 2010 Hi, Can I add a link inside nl2br function ? how do i code this echo nl2br(An absolute URL: <a href="http://www.w3schools.com">W3Schools</a>); nl2br's input needs to be a string, add quotations: echo nl2br('An absolute URL: <a href="http://www.w3schools.com">W3Schools</a>'); Link to comment https://forums.phpfreaks.com/topic/193519-nl2br-questions/#findComment-1018742 Share on other sites More sharing options...
itdmacar Posted February 26, 2010 Author Share Posted February 26, 2010 Thanks ialsoagree, I will try that . . . Link to comment https://forums.phpfreaks.com/topic/193519-nl2br-questions/#findComment-1018746 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.