Creates an HTML processor in the full parsing mode.
Description
It's likely that a fragment parser is more appropriate, unless sending an entire HTML document from start to finish. Consider a fragment parser with a context node of <body>. Since UTF-8 is the only currently-accepted charset, if working with a document that isn't UTF-8, it's important to convert the document before creating the processor: pass in the converted HTML.
Parameters
$htmlstring
Input HTML document to process.
$known_definite_encodingstring|nulloptional
If provided, specifies the charset used in the input byte stream. Currently must be UTF-8.Default: 'UTF-8'
Return
static|null
The created processor if successful, otherwise null.
Signature, return type and hooks compared across 5 parsed releases.
About this page
Parsed data
Generated from the wordpress-develop 6.7.7 tag, from src/wp-includes/html-api/class-wp-html-processor.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
Corrections
Something wrong on this page? Report it and it gets fixed in the next regeneration.