Removes the current token, keeping any text it wraps.
Source
public function remove_token(): void {
// Always called after next_tag() returned true, so the bookmark is set.
$this->set_bookmark( 'here' );
$span = $this->bookmarks['here'];
$this->lexical_updates[] = new WP_HTML_Text_Replacement( $span->start, $span->length, '' );
}
User Contributed Notes
You must log in before being able to contribute a note or feedback.