Hi, Can anyone here in DP would like to help me how to create a php script that will automatically adjust the width and height of embed code inputted by a user? looking forward for your help
$code = preg_replace('/width=["\']?[0-9]+["\']?/i', 'width="500"', $code); $code = preg_replace('/height=["\']?[0-9]+["\']?/i', 'height="500"', $code); PHP: