API / Minn\Content / NoteMarkers

NoteMarkers final class

Minn\Content\NoteMarkers · public/minn/src/Minn/Content/NoteMarkers.php · 34 lines

The markers the block editor's notes leave in content: a mark element whose class list holds "wp-note". A rendered block loses the marker and keeps what it wrapped, nested markers too, an unclosed one losing only its opening tag; any other mark stays whole (probe comment-helpers).

Uses 1

Public

staticstrip(string $html): string#

Markup with every note marker's tags taken out.

Internals 1

Private and protected methods: how the class does its work. Not a contract; they change whenever the code is tidied.

privateisNote(string $tag): bool#

Whether a mark's opening tag carries the "wp-note" class.