]+rel=["\'](?:shortcut icon|icon|apple-touch-icon)["\'][^>]*>\s*~i', '', $html ); // Inject our icons right before $inject = ''; $inject .= ''; $inject .= ''; $html = preg_replace('~ ~i', $inject . ' ', $html, 1); return $html; }); }, 0);