diff options
author | Daniel Friesel <derf@finalrewind.org> | 2022-03-30 18:24:50 +0200 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2022-03-30 18:24:50 +0200 |
commit | 9d4a189833409c5ffa7852bb30e6b1a64be04889 (patch) | |
tree | df1bbc9ef4ee385a2a5fc4e7c7e804b82ff81c6e /lib | |
parent | 1c80f35a18e4a023b269c4b506cdd073c5796793 (diff) |
HAFAS: more generic fix for invalid XML4.9.3
Diffstat (limited to 'lib')
-rw-r--r-- | lib/DBInfoscreen/Helper/HAFAS.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/DBInfoscreen/Helper/HAFAS.pm b/lib/DBInfoscreen/Helper/HAFAS.pm index 31615b1..48632c0 100644 --- a/lib/DBInfoscreen/Helper/HAFAS.pm +++ b/lib/DBInfoscreen/Helper/HAFAS.pm @@ -119,7 +119,7 @@ sub get_xml_p { # More fixes for invalid XML $body =~ s{P&R}{P&R}; - $body =~ s{Wagen \d+ \K&(?= )}{&}; + $body =~ s{& }{& }g; # <Attribute [...] text="[...]"[...]"" /> is invalid XML. # Work around it. |