How can I remove or skip or prevent an image to show on my page when I am getting rss data.. I have stopped the Image showing but the URL of that Image still showing as plain text.. here is the code that I have used to generate data.. // Parse IMAGE info preg_match("'<image.*?>(.*?)</image>'si", $rss_content, $out_imageinfo); if (isset($out_imageinfo[1])) { foreach($this->imagetags as $imagetag) { $temp = $this->my_preg_match("'<$imagetag.*?>(.*?)</$imagetag>'si", $out_imageinfo[1]); if ($temp != '') $result['image_'.$imagetag] = $temp; // Set only if not empty } } PHP: Please help me out.
preg_replace() PHP: Something like $rss_content = preg_replace('#<image.*?>(.*?)</image>#U', '', $rss_content) PHP: Please supply us a link for a better example if the above doesn't work.