Overview
This simple PHP function removes the width and height from the supplied string.
PHP Code:
//#################################################################
// REMOVE WIDTH AND HEIGHT ATTRIBUTES
//#################################################################
function removeWidthHeightAttribute($str) {
$str = preg_replace( '/(width|height)="\d*"\s/', "", $str );
return $str;
}