From 793361f8d644d7597b936a4471753c3b32f288cb Mon Sep 17 00:00:00 2001 From: Andreas Gohr <andi@splitbrain.org> Date: Sun, 26 Jul 2009 13:45:54 +0200 Subject: [PATCH] Avoid double encoding for RSS titles FS#1705 Ignore-this: 3e02f7f87047627230ff95fd4a38de32 darcs-hash:20090726114554-7ad00-4ad7f6e5c9a95eea352ab909a54798a5a773e9f1.gz --- inc/parser/xhtml.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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(); } -- GitLab