Hello, what is wrong with this (THE @ is supposed to be [ and ]:
function NewsOutputText($text) {
$text = stripslashes($text);
$text = htmlentities($text);
$text = str_replace('@\b@', '<b>', $text);
$text = str_replace('@\/b@', '</b>', $text);
$text = str_replace('@\i@', '<i>', $text);
$text = str_replace('@\/i@', '</i>', $text);
$text = str_replace('@\u@', '<u>', $text);
$text = str_replace('@\/u@', '</u>', $text);
$text = nl2br($text);
return $text;
}
If i write @@ it apears as @@ and not like Something like it should.