Alert: This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.
LLMS_DOM_Document::load_with_mb_convert_encoding()
Load the HTML string in the DOMDocument using mb_encode_numericentity
Contents
Return Return
(void)
Source Source
File: includes/class-llms-dom-document.php
private function load_with_mb_convert_encoding() {
$html = mb_encode_numericentity( $this->source, array( 0x80, 0x10FFFF, 0, 0x1FFFFF ), 'UTF-8' );
if ( ! $this->dom->loadHTML( $html ) ) {
$this->error = new WP_Error( 'llms-dom-document-error', __( 'DOMDocument XML Error encountered.', 'lifterlms' ), libxml_get_errors() );
}
}
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
| Version | Description |
|---|---|
| 9.2.2 | Use mb_encode_numericentity() instead of deprecated mb_convert_encoding() with 'HTML-ENTITIES'. |
| 4.13.0 | Introduced. |