menwn Posted April 16, 2007 Share Posted April 16, 2007 Hi all, I have a mysql database and I am building a search engine on it. The problem is that in the database there is stored html code like <b>, <align> so it messes up my result page. Is there enything I good do. Some php fuction? I have tried htmlspecialchars() and htmlentities() and there decode modes but nothing seems to happen. Thanks in advance menwn Link to comment https://forums.phpfreaks.com/topic/47214-strip-html-code/ Share on other sites More sharing options...
ted_chou12 Posted April 16, 2007 Share Posted April 16, 2007 try strip_tags() Link to comment https://forums.phpfreaks.com/topic/47214-strip-html-code/#findComment-230246 Share on other sites More sharing options...
menwn Posted April 16, 2007 Author Share Posted April 16, 2007 Yes that did the trick... thanks a lot Link to comment https://forums.phpfreaks.com/topic/47214-strip-html-code/#findComment-230342 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.