php_begins Posted August 5, 2011 Share Posted August 5, 2011 Hi, How can I display something from the database by stripping all the tags except the hyperlink(<a>) tag? Link to comment https://forums.phpfreaks.com/topic/243962-strip-all-tags-except-hyperlink/ Share on other sites More sharing options...
Pikachu2000 Posted August 5, 2011 Share Posted August 5, 2011 strip_tags will allow you to specify the tags that should be left intact, via its second, optional parameter. Link to comment https://forums.phpfreaks.com/topic/243962-strip-all-tags-except-hyperlink/#findComment-1252664 Share on other sites More sharing options...
php_begins Posted August 5, 2011 Author Share Posted August 5, 2011 Thanks, i didnt pay attention to the extra option.. Link to comment https://forums.phpfreaks.com/topic/243962-strip-all-tags-except-hyperlink/#findComment-1252712 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.