WordpressPostTransformer::clean_pre
Accepts matches array from preg_replace_callback in wpautop() or a string.
Ensures that the contents of a <<pre>>...<</pre>> HTML block are not converted into paragraphs or line-breaks. Source originally from Wordpress.
Signature
public function clean_pre(array|string
$matches )
Parameters
$matches
— object- The array or string
Returns
- string
- The pre block without paragraph/line-break conversion.