Quote:
Originally Posted by KirbyDE
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?
|
haha yes the first one, I had figured it out...thanks for all of your help!!