From b1a0853ddf4238c895d86dbfc12d67f4ea6303f2 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Mon, 12 Jul 2021 19:15:55 +0200 Subject: Handle another case of funky HAFAS HTML ("foo <> bar") --- lib/DBInfoscreen/Helper/HAFAS.pm | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/DBInfoscreen/Helper/HAFAS.pm b/lib/DBInfoscreen/Helper/HAFAS.pm index 3faf3c7..4a3c3e7 100644 --- a/lib/DBInfoscreen/Helper/HAFAS.pm +++ b/lib/DBInfoscreen/Helper/HAFAS.pm @@ -138,6 +138,14 @@ sub get_xml_p { { } + # ... and + # (replace <> with t$t) + while ( $body + =~ s{]+)lead="([^"]*)<>([^"=]*)"}{