hafas: more generic fix for invalid XML
This commit is contained in:
parent
13b4572a2f
commit
5cd25d442f
1 changed files with 1 additions and 2 deletions
|
@ -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.
|
||||||
|
|
Loading…
Reference in a new issue