diff --git a/wp-includes/html-api/class-wp-html-tag-processor.php b/wp-includes/html-api/class-wp-html-tag-processor.php
index 445de9ee29..1fe0029319 100644
--- a/wp-includes/html-api/class-wp-html-tag-processor.php
+++ b/wp-includes/html-api/class-wp-html-tag-processor.php
@@ -2324,6 +2324,10 @@ class WP_HTML_Tag_Processor {
continue;
}
+ $tag_ends_at = strpos( $this->html, '>', $this->bytes_already_parsed );
+ $this->tag_ends_at = $tag_ends_at;
+ $this->bytes_already_parsed = $tag_ends_at;
+
return $this->html;
}
diff --git a/wp-includes/version.php b/wp-includes/version.php
index 05518ecbdd..ca5df94fff 100644
--- a/wp-includes/version.php
+++ b/wp-includes/version.php
@@ -16,7 +16,7 @@
*
* @global string $wp_version
*/
-$wp_version = '6.4-beta4-56952';
+$wp_version = '6.4-beta4-56953';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.