X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FHTML%2FUtil.pm;h=c62fd9202e1c32927ebd32c5dc96e34aaca5161c;hb=dc824520b4024bb73b4522a8dad9aae179b29540;hp=ed5ffdec9bf9f84fa5de484bae1923e171582285;hpb=ad06ed73b3e1d5932d874ef389daa109307db723;p=kivitendo-erp.git diff --git a/SL/HTML/Util.pm b/SL/HTML/Util.pm index ed5ffdec9..c62fd9202 100644 --- a/SL/HTML/Util.pm +++ b/SL/HTML/Util.pm @@ -17,7 +17,10 @@ sub strip { my $value = !ref($class_or_value) && (($class_or_value // '') eq 'SL::HTML::Util') ? $_[1] : $class_or_value; - return '' unless $value; + return '' unless defined $value; + + # Remove HTML comments. + $value =~ s{ }{}gx; if (!%stripper) { %stripper = ( parser => HTML::Parser->new );