Skip to content
Snippets Groups Projects
Unverified Commit 5cd25d44 authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

hafas: more generic fix for invalid XML

parent 13b4572a
No related merge requests found
...@@ -198,8 +198,7 @@ sub get_xml_p { ...@@ -198,8 +198,7 @@ sub get_xml_p {
# More fixes for invalid XML # More fixes for invalid XML
$body =~ s{P&R}{P&R}; $body =~ s{P&R}{P&R};
$body =~ s{Wagen \d+ \K&}{&}; $body =~ s{& }{& }g;
$body =~ s{Wagen \d+, \d+ \K&}{&};
# <Attribute [...] text="[...]"[...]"" /> is invalid XML. # <Attribute [...] text="[...]"[...]"" /> is invalid XML.
# Work around it. # Work around it.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment