I need remove all img element in html that non contain src attribute with preg_match and PHP
something like:
<html>
<img src="someurl" alt="something" />
<img alt="something" />
<html />
in
<html>
<img src="someurl" alt="something" />
<html />
Tanks