summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/DBInfoscreen/Helper/HAFAS.pm7
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/DBInfoscreen/Helper/HAFAS.pm b/lib/DBInfoscreen/Helper/HAFAS.pm
index faf7848..8a88c61 100644
--- a/lib/DBInfoscreen/Helper/HAFAS.pm
+++ b/lib/DBInfoscreen/Helper/HAFAS.pm
@@ -103,8 +103,11 @@ sub get_xml_p {
# regardless. As it is the last tag, we just throw it away.
$body =~ s{<SDay [^>]*/>}{}s;
- # <Attribute [...] text="[...] "[...]"" prio="800" /> is invalid XML.
- # Work around it.
+ # More fixes for invalid XML
+ $body =~ s{P&R}{P&amp;R};
+
+ # <Attribute [...] text="[...] "[...]"" /> is invalid XML.
+ # Work around it.
$body
=~ s{<Attribute([^>]+)text="([^"]*)"([^"=]*)""}{<Attribute$1text="$2&#042;$3&#042;"}s;