You are here

class FeedsExHtmlEncoder in Feeds extensible parsers 7

Converts the encoding of an HTML document to UTF-8.

Hierarchy

Expanded class hierarchy of FeedsExHtmlEncoder

File

src/Xml/Utility.php, line 196
Contains FeedsExXmlUtility.

View source
class FeedsExHtmlEncoder extends FeedsExXmlEncoder {

  /**
   * {@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';

}

Members

Namesort descending Modifiers Type Description Overrides
FeedsExHtmlEncoder::$findRegex protected property The regex used to find the encoding. Overrides FeedsExXmlEncoder::$findRegex
FeedsExHtmlEncoder::$replacePattern protected property The replacement pattern. Overrides FeedsExXmlEncoder::$replacePattern
FeedsExHtmlEncoder::$replaceRegex protected property The regex used to replace the encoding. Overrides FeedsExXmlEncoder::$replaceRegex
FeedsExTextEncoder::$encodingList protected property The list of encodings to search for.
FeedsExTextEncoder::$isMultibyte protected property Whether the current system handles mb_* functions.
FeedsExTextEncoder::$utf8Compatible protected static property The set of encodings compatible with UTF-8.
FeedsExTextEncoder::configForm public function Returns the configuration form to select encodings. Overrides FeedsExEncoderInterface::configForm
FeedsExTextEncoder::configFormValidate public function Validates the encoding configuration form. Overrides FeedsExEncoderInterface::configFormValidate
FeedsExTextEncoder::detectEncoding protected function Detects the encoding of a string.
FeedsExTextEncoder::doConvert protected function Performs the actual encoding conversion.
FeedsExTextEncoder::__construct public function Constructs a FeedsExEncoderInterface object. Overrides FeedsExEncoderInterface::__construct
FeedsExXmlEncoder::convertEncoding public function Converts a string to UTF-8. Overrides FeedsExTextEncoder::convertEncoding