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.


Load the HTML string in the DOMDocument using the meta ut8 fixer

Return Return


Top ↑

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() );

		// 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


Top ↑

Changelog Changelog

Version Description
4.13.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.