laPistola Posted December 14, 2008 Share Posted December 14, 2008 Im trying to remove HTML tags from a varable i tryed htmentities below echo substr(htmlentities($row_newsRS['article']),0,700); but all it did was show up the html on the page ie, p><span style="font-size:12px;">text here</span></p> would be shown on the page i also just now tried echo substr(htmlentities($row_newsRS['article'],ENT_QUOTES,"utf-8"),0,700); but same results i shown the HTML on the browser page?? Link to comment https://forums.phpfreaks.com/topic/136928-solved-removing-html-tags/ Share on other sites More sharing options...
Mark Baker Posted December 14, 2008 Share Posted December 14, 2008 strip_tags() Link to comment https://forums.phpfreaks.com/topic/136928-solved-removing-html-tags/#findComment-715097 Share on other sites More sharing options...
laPistola Posted December 14, 2008 Author Share Posted December 14, 2008 thank you, i can see that being useful else where to! Link to comment https://forums.phpfreaks.com/topic/136928-solved-removing-html-tags/#findComment-715103 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.