Index: trunk/extensions/RSS/RSSData.php |
— | — | @@ -16,6 +16,12 @@ |
17 | 17 | foreach ( $item->childNodes as $n ) { |
18 | 18 | $name = $this->rssTokenToName( $n->nodeName ); |
19 | 19 | if ( $name != null ) { |
| 20 | + /* Because for DOMElements the nodeValue is just |
| 21 | + * the text of the containing element, without any |
| 22 | + * tags, it makes this a safe, if unattractive, |
| 23 | + * value to use. If you want to allow people to |
| 24 | + * mark up their RSS, some more precautions are |
| 25 | + * needed. */ |
20 | 26 | $bit[$name] = $n->nodeValue; |
21 | 27 | } |
22 | 28 | } |