Quote:
PHP Code:
$text = preg_replace('/<.*>/U', '', $text);
echo $text . "K<br>\\n";
|
Try adding the 's' to account for newline like so:
PHP Code:
$text = preg_replace('/<.*>/sU', '', $text);
echo $text . "K<br>\n";
You may want to remove all the whitespace though.