1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-06 14:46:56 +02:00

Test for toRss()

This commit is contained in:
Cameron
2021-01-05 10:36:58 -08:00
parent 741d91a76b
commit 661fd6fb2c
2 changed files with 45 additions and 1 deletions

View File

@@ -2428,6 +2428,9 @@ class e_parse extends e_parser
$text = $this->ampEncode($text);
// if CDATA happens to be quoted in the text.
$text = str_replace(['<![CDATA', ']]>'], ['&lt;![CDATA', ']]&gt;'], $text);
if($tags == true && ($text))
{
$text = '<![CDATA[' .$text. ']]>';