This is what I have originally, any help to get this translated to preg_replace_callback will be so much appreciated!
function addtemplateslashes($template)
{
return "?".">".$template."<?php";
}
$template = preg_replace("/\?".">(\r*\n*.*)(<\?php|<\?)/esiU","addtemplateslashes('\\1')",$template)...
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.