diff --git a/classes/FeedItem.php b/classes/FeedItem.php
index 9350d65..954e613 100644
a
|
b
|
|
12 | 12 | private $elements = array(); //Collection of feed elements |
13 | 13 | private $version; |
14 | 14 | |
| 15 | |
15 | 16 | /** |
16 | 17 | * Constructor |
17 | 18 | * |
… |
… |
|
22 | 23 | } |
23 | 24 | |
24 | 25 | /** |
| 26 | * Make a string XML safe |
| 27 | */ |
| 28 | private function xml_str($strin) { |
| 29 | $strout = str_replace("&","&",$strin); |
| 30 | $strout = str_replace("<","<",$strout); |
| 31 | $strout = str_replace(">",">",$strout); |
| 32 | return $strout; |
| 33 | } |
| 34 | |
| 35 | |
| 36 | /** |
25 | 37 | * Add an element to elements array |
26 | 38 | * |
27 | 39 | * @access public |
… |
… |
|
32 | 44 | */ |
33 | 45 | public function addElement($elementName, $content, $attributes = null) { |
34 | 46 | $this->elements[$elementName]['name'] = $elementName; |
35 | | $this->elements[$elementName]['content'] = $content; |
| 47 | $this->elements[$elementName]['content'] = $this->xml_str($content); |
36 | 48 | $this->elements[$elementName]['attributes'] = $attributes; |
37 | 49 | } |
38 | 50 | |