312
312
* @return string Potentially modified $content.
314
314
public function autoembed( $content ) {
318
318
// Find URLs that are on their own line.
319
return preg_replace_callback( '|^(\s*)(https?://[^\s"]+)(\s*)$|im', array( $this, 'autoembed_callback' ), $content );
319
$content = preg_replace_callback( '|^(\s*)(https?://[^\s"]+)(\s*)$|im', array( $this, 'autoembed_callback' ), $content );