Hi,
Basically I have HTML stored in a database that I query and print on my website. I need to know of a way that I can print the HTML code without the <img> tags... basically print everything in the HTML code except the <img> tags...
Please help...
Thanks
Joe
<? $a = "<b>bold<img src='xyz.jpg'><a href='abc.htm'>abc</a>"; $a = eregi_replace("<img","<img",$a); print $a; ?>
or to erase the whole <img...</img> tag, run this
$a = "<b>bold<iMg src='xyz.jpg'><a href='abc.htm'>abc</a>"; $a = preg_replace("~<img(.*?)>~i"," ",$a); echo $a;
so you dont have a <img src=xxx> layin around