From e09fbb1194ebfbb3b278bae40d31c67e416cf919 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Wed, 2 Apr 2014 14:12:10 +0200 Subject: [PATCH] =?utf8?q?SL::HTML::Util::strip:=20bei=20unbekannten=20Ent?= =?utf8?q?it=C3=A4ten=20die=20Entit=C3=A4t=201:1=20behalten?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- SL/HTML/Util.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SL/HTML/Util.pm b/SL/HTML/Util.pm index 0b2e630d0..72a7a7f57 100644 --- a/SL/HTML/Util.pm +++ b/SL/HTML/Util.pm @@ -27,7 +27,7 @@ sub strip { $stripper{parser}->parse($value); $stripper{parser}->eof; - $stripper{text} =~ s{\&([^;]+);}{ $entities{$1} }eg; + $stripper{text} =~ s{\&([^;]+);}{ $entities{$1} || "\&$1;" }eg; return delete $stripper{text}; } -- 2.20.1