WP_HTML_Tag_Processor::skip_rawtext( string $tag_name ): bool

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. Use https://html.spec.whatwg.org/#generic-raw-text-element-parsing-algorithm instead.

Skips contents of generic rawtext elements.

Description

See also

Parameters

$tag_namestringrequired
The uppercase tag name which will close the RAWTEXT region.

Return

bool Whether an end to the RAWTEXT region was found before the end of the document.

Source

*           ^  ^
*            \-|-- this `H2` opener bookmark tracks the token
*
*     <main class="clickbait"><h2>Surprising fact you may no…
*                             ^  ^
*                              \-|-- it shifts with edits
*
* Bookmarks provide the ability to seek to a previously-scanned

Changelog

VersionDescription
6.3.2Introduced.

User Contributed Notes

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