mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-13 08:10:46 +00:00
Work around embedding of invalid XML tags for all Hafas based providers
This commit is contained in:
parent
b44a8c5ba1
commit
f5e422d8b3
1 changed files with 3 additions and 0 deletions
|
@ -653,8 +653,11 @@ public abstract class AbstractHafasProvider extends AbstractNetworkProvider
|
|||
reader = new StringReplaceReader(new InputStreamReader(ParserUtils.scrapeInputStream(uri), ISO_8859_1), " & ", " & ");
|
||||
reader.replace("<b>", " ");
|
||||
reader.replace("</b>", " ");
|
||||
reader.replace("<u>", " ");
|
||||
reader.replace("</u>", " ");
|
||||
reader.replace(" ->", " →"); // right arrow
|
||||
reader.replace(" <-", " ←"); // left arrow
|
||||
reader.replace(" <> ", " ↔ "); // left-right arrow
|
||||
addCustomReplaces(reader);
|
||||
|
||||
// System.out.println(uri);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue