public function toHtml()
    {
        if (config('talk.oembed.enabled')) {
            $parsedUrl = parse_url(config('talk.oembed.url'));
            $this->driver->addProvider(
                $parsedUrl['host'],
                Adapter::class,
                [
                    'api_key' => config('talk.oembed.key'),
                ]
            );
        }

        $result = $this->driver->autoEmbed($this->string);

        return $result;
    }
public function toHtml()
    {
        if (config('talk.oembed.enabled')) {
            $parsedUrl = parse_url(config('talk.oembed.url'));
            $this->driver->addProvider(
                $parsedUrl['host'],
                Adapter::class,
                [
                    'api_key' => config('talk.oembed.key'),
                ]
            );
        }

        $result = $this->driver->autoEmbed($this->string);

        return $result;
    }
public function toHtml ( ) { if ( config ( 'talk.oembed.enabled' ) ) { $ parsedUrl = parse_url ( config ( 'talk.oembed.url' ) ) ; $ this -> driver -> addProvider ( $ parsedUrl [ 'host' ] , Adapter :: class , [ 'api_key' => config ( 'talk.oembed.key' ) , ] ) ; } $ result = $ this -> driver -> autoEmbed ( $ this -> string ) ; return $ result ; }
Get content as a string of HTML.

@return string
Get content as a string of HTML .