summaryrefslogtreecommitdiff
path: root/inc/parser/xhtml.php
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2009-07-26 13:45:54 +0200
committerAndreas Gohr <andi@splitbrain.org>2009-07-26 13:45:54 +0200
commit793361f8d644d7597b936a4471753c3b32f288cb (patch)
tree38fdc58d8b64eaaaa395ec76a0b019696ed960e3 /inc/parser/xhtml.php
parent7c3370d33dfcec4a713e6b1e40cacad19998bf51 (diff)
downloadrpg-793361f8d644d7597b936a4471753c3b32f288cb.tar.gz
rpg-793361f8d644d7597b936a4471753c3b32f288cb.tar.bz2
Avoid double encoding for RSS titles FS#1705
Ignore-this: 3e02f7f87047627230ff95fd4a38de32 darcs-hash:20090726114554-7ad00-4ad7f6e5c9a95eea352ab909a54798a5a773e9f1.gz
Diffstat (limited to 'inc/parser/xhtml.php')
-rw-r--r--inc/parser/xhtml.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/inc/parser/xhtml.php b/inc/parser/xhtml.php
index 57e9621e1..5a1c1893b 100644
--- a/inc/parser/xhtml.php
+++ b/inc/parser/xhtml.php
@@ -775,8 +775,10 @@ class Doku_Renderer_xhtml extends Doku_Renderer {
// support feeds without links
$lnkurl = $item->get_permalink();
if($lnkurl){
+ // title is escaped by SimplePie, we unescape here because it
+ // is escaped again in externallink() FS#1705
$this->externallink($item->get_permalink(),
- $item->get_title());
+ htmlspecialchars_decode($item->get_title()));
}else{
$this->doc .= ' '.$item->get_title();
}