4 sty 2013

Usunięcie tagów html z tekstu

Usunięcie tagów html z tekstu

$art_text = preg_replace("/(align|class|style|clear)\=\"([^\"]*)\"/", '', $art_text);
$art_text = strip_tags($art_text, '<p><br><strong><b><em><u><strike>');
echo $art_text;