Maybe you should clearly state what you actually want ... makes it easier to give an answer
So you want HTML but not encoded? Then use this:
PHP Code:
require_once('./includes/functions_bbcodeparse.php');
echo "\t\t<content:encoded><![CDATA[". parse_bbcode2($thread['preview'], false, true, false, true) ."]]></content:encoded.\r\n";
Or do you want to remove BBCode, but have newlines converted to <br />?
Use this:
PHP Code:
echo "\t\t<content:encoded><![CDATA[". nl2br(strip_bbcode($thread['preview'])) ."]]></content:encoded.\r\n";
Or the same but encoded?
PHP Code:
echo "\t\t<content:encoded><![CDATA[". htmlspecialchars_uni(nl2br(strip_bbcode($thread['preview'])) )."]]></content:encoded.\r\n";
Or something completely different?