Ticket #6289: mythweb-feed-non-ascii.patch
File mythweb-feed-non-ascii.patch, 1.0 KB (added by , 15 years ago) |
---|
-
classes/FeedWriter.php
249 249 $nodeText .= $this->makeNode($key, $value); 250 250 } 251 251 else 252 $nodeText .= (in_array($tagName, $this->CDATAEncoding))? $tagContent : htmlentities($tagContent);252 $nodeText .= $tagContent; 253 253 254 254 $nodeText .= (in_array($tagName, $this->CDATAEncoding))? "]]></$tagName>" : "</$tagName>"; 255 255 -
classes/FeedItem.php
32 32 */ 33 33 public function addElement($elementName, $content, $attributes = null) { 34 34 $this->elements[$elementName]['name'] = $elementName; 35 $this->elements[$elementName]['content'] = urldecode(utf8_decode($content));35 $this->elements[$elementName]['content'] = $content; 36 36 $this->elements[$elementName]['attributes'] = $attributes; 37 37 } 38 38