]> wagnertech.de Git - kivitendo-erp.git/blobdiff - SL/HTML/Util.pm
HTML::Util: "nbsp" als HTML-Entity durch " " (space) ersetzen.
[kivitendo-erp.git] / SL / HTML / Util.pm
index c62fd9202e1c32927ebd32c5dc96e34aaca5161c..f68fb0a1f8d93cf04a4f46bd722eadba0d7134d1 100644 (file)
@@ -7,9 +7,11 @@ use HTML::Parser;
 
 my %stripper;
 my %entities = (
-  'lt'  => '<',
-  'gt'  => '>',
-  'amp' => '&',
+  'lt'   => '<',
+  'gt'   => '>',
+  'amp'  => '&',
+  'nbsp' => ' ',   # should be => "\x{00A0}", but this can lead to problems with
+                   # a non-visible character in csv-exports for example
 );
 
 sub strip {