TobesC Posted October 12, 2009 Share Posted October 12, 2009 im making a blog using a standard mysql db table. is there anyway i can add links to the entries that wont get taken off when i output the text with strip_tags? thanks. Quote Link to comment https://forums.phpfreaks.com/topic/177379-links-into-database/ Share on other sites More sharing options...
pastcow Posted October 12, 2009 Share Posted October 12, 2009 You can specify not to strip tags out with strip_tags eg.. <code> // Allow <p> and <a> echo strip_tags($text, '<p><a>'); </code> Quote Link to comment https://forums.phpfreaks.com/topic/177379-links-into-database/#findComment-935498 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.