HTML::Util: "nbsp" als HTML-Entity durch " " (space) ersetzen.
[kivitendo-erp.git] / SL / HTML / Util.pm
index c62fd92..f68fb0a 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 {