diff --git a/src/wp-includes/html-api/class-wp-html-tag-processor.php b/src/wp-includes/html-api/class-wp-html-tag-processor.php
index 31db41a3c86ad..42675ecd3cf91 100644
--- a/src/wp-includes/html-api/class-wp-html-tag-processor.php
+++ b/src/wp-includes/html-api/class-wp-html-tag-processor.php
@@ -274,7 +274,7 @@ class WP_HTML_Tag_Processor {
* @since 6.2.0
* @var string
*/
- private $html;
+ protected $html;
/**
* The last query passed to next_tag().