JSHINER Posted April 9, 2009 Share Posted April 9, 2009 If I have the follow blog post: "<img class="alignnone size-full wp-image-24" style="float: right; margin-left: 10px; margin-bottom: 10px" title="Old Phone" src="http://site.com/old-phone.gif" alt="Old Phone" width="250" /><b>This is the blog text here.</b>And some more blog text." How can I get it to just display: "This is the blog text here. And some more blog text." Basically I need formatting and images taken out of it. If all I can do is images that's fine, but I need them out at the very least. Link to comment https://forums.phpfreaks.com/topic/153358-solved-dont-display-image-in-blog-excerpt/ Share on other sites More sharing options...
charleshill Posted April 9, 2009 Share Posted April 9, 2009 http://www.php.net/strip_tags strip_tags — Strip HTML and PHP tags from a string Link to comment https://forums.phpfreaks.com/topic/153358-solved-dont-display-image-in-blog-excerpt/#findComment-805709 Share on other sites More sharing options...
Soulstealer Posted April 9, 2009 Share Posted April 9, 2009 i just use dreamwaver and it shows like your code you can use that if u want Link to comment https://forums.phpfreaks.com/topic/153358-solved-dont-display-image-in-blog-excerpt/#findComment-805719 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.