Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function resizeEmbedded($subject,$width,$height) {
- if(eregi('<',$subject)) { $subject = html_entities_decode($subject); }
- $subject = str_replace("'",'"',$subject);
- $pattern = "/height=\"[0-9]*\"/";
- $subject = preg_replace($pattern, "height='".$height."'", $subject);
- $pattern = "/width=\"[0-9]*\"/";
- $subject = preg_replace($pattern, "width='".$width."'", $subject);
- return $subject;
- }
Add Comment
Please, Sign In to add comment