$html = $params->get( 'fwd_html' );
preg_match("/<script(.*)>(.*)<\/script>/", $html, $matches);
if ($matches) {
foreach ($matches as $i=>$match) {
$clean_js = preg_replace("/<br \/>/", "", $match);
$html = str_replace($match, $clean_js, $html);
}
}
echo $html;
Il seguente codice dovrebbe servire a rimpiazzare il tag
ma non funziona, qualcuno sa perchè?