HtmlEncoder.php in Feeds extensible parsers 8
Namespace
Drupal\feeds_ex\EncoderFile
src/Encoder/HtmlEncoder.phpView source
<?php
namespace Drupal\feeds_ex\Encoder;
/**
* Converts the encoding of an HTML document to UTF-8.
*/
class HtmlEncoder extends XmlEncoder {
/**
* {@inheritdoc}
*/
protected $findRegex = '/(<meta[^>]+charset\\s*=\\s*["\']?)([\\w-]+)\\b/i';
/**
* {@inheritdoc}
*/
protected $replaceRegex = '/(<meta[^>]+charset\\s*=\\s*["\']?)([\\w-]+)\\b/i';
/**
* {@inheritdoc}
*/
protected $replacePattern = '$1UTF-8';
}
Classes
Name![]() |
Description |
---|---|
HtmlEncoder | Converts the encoding of an HTML document to UTF-8. |