Skip to content

Commit db24c11

Browse files
committed
Update docs examples.
1 parent 99799b7 commit db24c11

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/wp-includes/html-api/class-wp-html-processor.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1059,7 +1059,7 @@ public function get_current_depth(): int {
10591059
* // <div><p></p>fun<table><tbody><tr><td>cell</td></tr></tbody></table></div>
10601060
*
10611061
* echo WP_HTML_Processor::normalize( '<![CDATA[invalid comment]]> syntax < <> "oddities"' );
1062-
* // <!--invalid comment--> syntax &lt; &lt;&gt; &quot;oddities&quot;
1062+
* // <!--[CDATA[invalid comment]]--> syntax &lt; &lt;&gt; &quot;oddities&quot;
10631063
*
10641064
* @since 6.7.0
10651065
*
@@ -1103,7 +1103,7 @@ public static function normalize( string $html ): ?string {
11031103
*
11041104
* $processor = WP_HTML_Processor::create_fragment( '<![CDATA[invalid comment]]> syntax < <> "oddities"' );
11051105
* echo $processor->serialize();
1106-
* // <!--invalid comment--> syntax &lt; &lt;&gt; &quot;oddities&quot;
1106+
* // <!--[CDATA[invalid comment]]--> syntax &lt; &lt;&gt; &quot;oddities&quot;
11071107
*
11081108
* @since 6.7.0
11091109
*

0 commit comments

Comments
 (0)