Hello,
I want to remove all IMG-Tags from a string that already contains HTML-Code before I echo that string into my website.
Say
$tring="blabla <img src=".." more attributes>blablabla<other HTML-tags>";
should be converted to
$tring="blabla blablabla<other HTML-tags>";
I tried
$tring=ereg_replace("<img.*>","",$tring);
but that starts to replace from the first "<img"-found until the last ">" found from any other HTML-Tag.
How can I replace from "<img" until the FIRST ">" found thereafter?
Thanks, Jörg