OS : Linux
PHP Version : 7.4.33
Software : * around 2008-06-06 youtube changed their old embed code to this: * * old style was: * * 12-2010: * * 01-2011: * * * * @param string $content HTML content. * @return string The content with YouTube embeds replaced with YouTube shortcodes. */ function youtube_embed_to_short_code( $content ) { if ( ! is_string( $content ) || false === strpos( $content, 'youtube.com' ) ) { return $content; } // older codes. $regexp = '!!i'; $regexp_ent = htmlspecialchars( $regexp, ENT_NOQUOTES ); $old_regexp = '!|>\s*)!'; $old_regexp_ent = str_replace( '�*58;', '�*58;|*58;', htmlspecialchars( $old_regexp, ENT_NOQUOTES ) ); // new code. $ifr_regexp = '!