projects
/
kivitendo-erp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0276d36
)
SL::HTML::Util::strip: bei unbekannten Entitäten die Entität 1:1 behalten
author
Moritz Bunkus
<m.bunkus@linet-services.de>
Wed, 2 Apr 2014 12:12:10 +0000
(14:12 +0200)
committer
Moritz Bunkus
<m.bunkus@linet-services.de>
Wed, 2 Apr 2014 12:13:19 +0000
(14:13 +0200)
SL/HTML/Util.pm
patch
|
blob
|
history
diff --git
a/SL/HTML/Util.pm
b/SL/HTML/Util.pm
index
0b2e630
..
72a7a7f
100644
(file)
--- 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};
}