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. 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> Link to comment https://forums.phpfreaks.com/topic/177379-links-into-database/#findComment-935498 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.