]> wagnertech.de Git - kivitendo-erp.git/blobdiff - SL/HTML/Util.pm
SL::HTML::Util::strip: bei unbekannten Entitäten die Entität 1:1 behalten
[kivitendo-erp.git] / SL / HTML / Util.pm
index 0b2e630d00d227829ee6e7835f28489c1bb66a74..72a7a7f57481a3522833d04bfc45740d3fccc27a 100644 (file)
@@ -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};
 }