Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. Crawler.php

function Crawler::supportsEncoding

1 call to Crawler::supportsEncoding()
Crawler::parseHtml5 in vendor/symfony/dom-crawler/Crawler.php

File

vendor/symfony/dom-crawler/Crawler.php, line 1073

Class

Crawler
Crawler eases navigation of a list of \DOMNode objects.

Namespace

Symfony\Component\DomCrawler

Code

private function supportsEncoding(string $encoding) : bool {
    try {
        return '' === @mb_convert_encoding('', $encoding, 'UTF-8');
    } catch (\Throwable $e) {
        return false;
    }
}
RSS feed
Powered by Drupal