ohdang888 Posted August 21, 2008 Share Posted August 21, 2008 i'm stuck....i want to strip all <p> tags from the variable, but not htmlentities, because other tags are still valid... how would i do this? Thanks, Link to comment https://forums.phpfreaks.com/topic/120766-solved-strip-chars/ Share on other sites More sharing options...
ohdang888 Posted August 21, 2008 Author Share Posted August 21, 2008 nevermind i've solved it..... Link to comment https://forums.phpfreaks.com/topic/120766-solved-strip-chars/#findComment-622447 Share on other sites More sharing options...
papaface Posted August 21, 2008 Share Posted August 21, 2008 nevermind i've solved it..... How did you do it then? Link to comment https://forums.phpfreaks.com/topic/120766-solved-strip-chars/#findComment-622533 Share on other sites More sharing options...
ohdang888 Posted August 22, 2008 Author Share Posted August 22, 2008 $stop = array("<p>", "<br>", "<br/>", "<BR/>"); $content = str_replace($stop, " ", $content); Link to comment https://forums.phpfreaks.com/topic/120766-solved-strip-chars/#findComment-622622 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.