tobeyt23 Posted September 6, 2007 Share Posted September 6, 2007 Have a question on how to solve this issue. I have a textarea and would like to allow users to enter an html coded link, store it in the DB, all of this works fine. However I would then like to pull out of the DB the section and if it contains a html coded link turn it into an actual link and added target="_blank" to it. How can this been done. The data coming out make contain other information that will also need to be displayed. Any suggestions/help would be greatful Link to comment https://forums.phpfreaks.com/topic/68243-converting-question/ Share on other sites More sharing options...
cooldude832 Posted September 6, 2007 Share Posted September 6, 2007 look into using a regular expression on the string, but fyi target="" is not a valid xhtml param. Link to comment https://forums.phpfreaks.com/topic/68243-converting-question/#findComment-343053 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.