asmith Posted August 5, 2008 Share Posted August 5, 2008 Hey guys I have some text in html code. which i need to remove all the html tags from it, so that i could get the plain text. something like : <p style="color:red;">here goes the text</p> how can i store the characters between < and > in a variable so i could remove them by str_replace? Link to comment https://forums.phpfreaks.com/topic/118217-solved-getting-the-part-of-string-between-html-tags/ Share on other sites More sharing options...
ratcateme Posted August 5, 2008 Share Posted August 5, 2008 have you looked at strip_tags() http://nz2.php.net/manual/en/function.strip-tags.php Scott. Link to comment https://forums.phpfreaks.com/topic/118217-solved-getting-the-part-of-string-between-html-tags/#findComment-608395 Share on other sites More sharing options...
asmith Posted August 5, 2008 Author Share Posted August 5, 2008 Thanks man, Exactly what i was looking for Link to comment https://forums.phpfreaks.com/topic/118217-solved-getting-the-part-of-string-between-html-tags/#findComment-608401 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.