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 Quote 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. Quote Link to comment https://forums.phpfreaks.com/topic/68243-converting-question/#findComment-343053 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.