View Full Version : Stripping tags from rssdisplaybox results?

12-04-2009, 12:30 AM
1) Script Title: Rssdisplaybox

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex18/rssdisplaybox/index.htm

3) Describe problem: Is there a way to strip unwanted tags from the results? I am using the results for a menu so these tags are making the menu search results inaccurate. You can see the page with the odd tags here: http://bluesplayer.co.uk/rssdisplaybox/movie-trailers.htm.


12-04-2009, 12:22 PM
This is something best done with PHP, by editing outputbody.php and using regular expressions to remove certain tags selectively. It does mean you need to be familiar with PHP obviously to make those kind of changes.

12-04-2009, 12:38 PM
Well I found this code:

$text = '<p>Test paragraph.</p><!-- Comment --> <a href="#fragment">Other text</a>';
echo strip_tags($text);
echo "\n";

// Allow <p> and <a>
echo strip_tags($text, '<p><a>');

but I am not sure how to apply it?