Handle another case of funky HAFAS html ("foo <> bar")
This commit is contained in:
parent
7b01cae7d5
commit
37a0b8f2ab
1 changed files with 8 additions and 0 deletions
|
@ -207,6 +207,14 @@ sub get_xml_p {
|
||||||
$body
|
$body
|
||||||
=~ s{<HIMMessage([^>]+)lead="([^"]*)"([^"=>]*)"([^"]*)"}{<Attribute$1text="$2*$3*$4"}s;
|
=~ s{<HIMMessage([^>]+)lead="([^"]*)"([^"=>]*)"([^"]*)"}{<Attribute$1text="$2*$3*$4"}s;
|
||||||
|
|
||||||
|
# ... and <HIMMessage [...] lead="[...]<>[...]">
|
||||||
|
# (replace <> with t$t)
|
||||||
|
while ( $body
|
||||||
|
=~ s{<HIMMessage([^>]+)lead="([^"]*)<>([^"=]*)"}{<HIMMessage$1lead="$2⬌$3"}gis
|
||||||
|
)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
# Dito for <HIMMessage [...] lead="[...]<br>[...]">.
|
# Dito for <HIMMessage [...] lead="[...]<br>[...]">.
|
||||||
while ( $body
|
while ( $body
|
||||||
=~ s{<HIMMessage([^>]+)lead="([^"]*)<br/?>([^"=]*)"}{<HIMMessage$1lead="$2 $3"}is
|
=~ s{<HIMMessage([^>]+)lead="([^"]*)<br/?>([^"=]*)"}{<HIMMessage$1lead="$2 $3"}is
|
||||||
|
|
Loading…
Reference in a new issue