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_meta_utf_fixer()
Load the HTML string in the DOMDocument using the meta ut8 fixer
Contents
Return Return
(void)
Source Source
File: includes/class-llms-dom-document.php
private function load_with_meta_utf_fixer() { if ( ! $this->dom->loadHTML( $this->utf8_fixer . $this->source ) ) { $this->error = new WP_Error( 'llms-dom-document-error', __( 'DOMDocument XML Error encountered.', 'lifterlms' ), libxml_get_errors() ); return; } // Remove the fixer meta element, if it's not removed it creates invalid HTML5 Markup. $meta = $this->dom->getElementById( 'llms-get-dom-doc-utf-fixer' ); if ( $meta ) { $meta->parentNode->removeChild( $meta ); // phpcs:ignore: WordPress.NamingConventions.ValidVariableName.UsedPropertyNotSnakeCase } }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
4.13.0 | Introduced. |