retesere20

Untitled

Nov 29th, 2017
61
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function url_correction_of_html_output($content){
  2. $content = preg_replace_callback(
  3. '/\<(img|link|iframe|frame|frameset|script|embed|video|audio)([^>]*)/si',
  4. function($matches) { return '<'.$matches[1].preg_replace('/=(\"|\')(http(s|):)/si','=$1', $matches[2]); },
  5. $content
  6. );
  7. return $content;
  8. }
RAW Paste Data