Ticket #6289: mythweb-feed-non-ascii.patch

File mythweb-feed-non-ascii.patch, 1.0 KB (added by otto at kolsi dot fi, 11 years ago)
  • classes/FeedWriter.php

     
    249249                                $nodeText .= $this->makeNode($key, $value);
    250250                }
    251251                else
    252                         $nodeText .= (in_array($tagName, $this->CDATAEncoding))? $tagContent : htmlentities($tagContent);
     252                        $nodeText .= $tagContent;
    253253
    254254                $nodeText .= (in_array($tagName, $this->CDATAEncoding))? "]]></$tagName>" : "</$tagName>";
    255255
  • classes/FeedItem.php

     
    3232 */
    3333        public function addElement($elementName, $content, $attributes = null) {
    3434                $this->elements[$elementName]['name']       = $elementName;
    35                 $this->elements[$elementName]['content']    = urldecode(utf8_decode($content));
     35                $this->elements[$elementName]['content']    = $content;
    3636                $this->elements[$elementName]['attributes'] = $attributes;
    3737        }
    3838