diff options
-rw-r--r-- | lib/Travelynx/Helper/HAFAS.pm | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Travelynx/Helper/HAFAS.pm b/lib/Travelynx/Helper/HAFAS.pm index a4035af..98ac4b9 100644 --- a/lib/Travelynx/Helper/HAFAS.pm +++ b/lib/Travelynx/Helper/HAFAS.pm @@ -1,4 +1,5 @@ package Travelynx::Helper::HAFAS; + # Copyright (C) 2020 Daniel Friesel # # SPDX-License-Identifier: MIT @@ -194,6 +195,7 @@ sub get_xml_p { # More fixes for invalid XML $body =~ s{P&R}{P&R}; + $body =~ s{Wagen \d+ \K&(?= )}{&}; # <Attribute [...] text="[...] "[...]"" /> is invalid XML. # Work around it. |