Joined April 2013
·

fcgrx

San Francisco, CA
·
·

To remove any img tag that does not contain a src attribute:


$str = preg_replace('#<img\s((?!src=).)/?>#Umi','',$str); </code> </pre> This is shorter and, I think, more reliable.
Achievements
19 Karma
0 Total ProTip Views
Interests & Skills