View Single Post
Old 09-05-2007, 16:28   #1 (permalink)
chris_bcn
Goodbye little old lady
 
chris_bcn's Avatar
 
Join Date: Jun 2005
Location: Geordie in SF
Posts: 339
Send a message via MSN to chris_bcn
strip_tags removing EVERYTHING

which in a way is good. However... I'm using Simplepie to parse rss feeds from 6 different blogs. I just want the <p> and <a> elements. I want to remove all the images.

This is what I have - I thought the syntax was right, but it removes all the text. all the images, everything

Code:
<?php strip_tags($item->get_description(),'<p> <a>') ?>

How do I get this to work?

[edit] oops - helps to echo it! move along nothing to see here
  Reply With Quote