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. Quote 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 Quote 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 Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.