Automattic\WooCommerce\EmailEditor\Engine\Renderer\ContentRenderer\Postprocessors
Highlighting_Postprocessor::postprocess
Postprocess the HTML.
Method of the class: Highlighting_Postprocessor{}
No Hooks.
Returns
String.
Usage
$Highlighting_Postprocessor = new Highlighting_Postprocessor(); $Highlighting_Postprocessor->postprocess( $html ): string;
- $html(string) (required)
- HTML to postprocess.
Highlighting_Postprocessor::postprocess() Highlighting Postprocessor::postprocess code WC 10.5.0
public function postprocess( string $html ): string {
return str_replace(
array( '<mark', '</mark>' ),
array( '<span', '</span>' ),
$html
);
}