class FeedsExHtmlEncoder in Feeds extensible parsers 7
Converts the encoding of an HTML document to UTF-8.
Hierarchy
- class \FeedsExTextEncoder implements FeedsExEncoderInterface
- class \FeedsExXmlEncoder
- class \FeedsExHtmlEncoder
- class \FeedsExXmlEncoder
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
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
FeedsExHtmlEncoder:: |
protected | property |
The regex used to find the encoding. Overrides FeedsExXmlEncoder:: |
|
FeedsExHtmlEncoder:: |
protected | property |
The replacement pattern. Overrides FeedsExXmlEncoder:: |
|
FeedsExHtmlEncoder:: |
protected | property |
The regex used to replace the encoding. Overrides FeedsExXmlEncoder:: |
|
FeedsExTextEncoder:: |
protected | property | The list of encodings to search for. | |
FeedsExTextEncoder:: |
protected | property | Whether the current system handles mb_* functions. | |
FeedsExTextEncoder:: |
protected static | property | The set of encodings compatible with UTF-8. | |
FeedsExTextEncoder:: |
public | function |
Returns the configuration form to select encodings. Overrides FeedsExEncoderInterface:: |
|
FeedsExTextEncoder:: |
public | function |
Validates the encoding configuration form. Overrides FeedsExEncoderInterface:: |
|
FeedsExTextEncoder:: |
protected | function | Detects the encoding of a string. | |
FeedsExTextEncoder:: |
protected | function | Performs the actual encoding conversion. | |
FeedsExTextEncoder:: |
public | function |
Constructs a FeedsExEncoderInterface object. Overrides FeedsExEncoderInterface:: |
|
FeedsExXmlEncoder:: |
public | function |
Converts a string to UTF-8. Overrides FeedsExTextEncoder:: |