MailPoet\EmailEditor\Engine\Renderer\ContentRenderer\Postprocessors

Highlighting_Postprocessor::postprocess()publicWC 1.0

Postprocess the HTML.

Method of the class: Highlighting_Postprocessor{}

No Hooks.

Return

String.

Usage

$Highlighting_Postprocessor = new Highlighting_Postprocessor();
$Highlighting_Postprocessor->postprocess( $html ): string;
$html(string) (required)
HTML to postprocess.

Highlighting_Postprocessor::postprocess() code WC 9.8.2

public function postprocess( string $html ): string {
	return str_replace(
		array( '<mark', '</mark>' ),
		array( '<span', '</span>' ),
		$html
	);
}