catch amateurish attempt to draw arrows using xml reserved characters

This commit is contained in:
Andreas Schildbach 2013-06-23 18:38:24 +02:00
parent a2255d0835
commit 38c34addbc

View file

@ -598,8 +598,8 @@ public abstract class AbstractHafasProvider extends AbstractNetworkProvider
{
// work around unparsable XML
reader = new StringReplaceReader(new InputStreamReader(ParserUtils.scrapeInputStream(uri), ISO_8859_1), " & ", " & ");
reader.replace("Ringbahn ->", "Ringbahn ->"); // Berlin
reader.replace("Ringbahn <-", "Ringbahn &lt;-"); // Berlin
reader.replace(" ->", " &#x2192;"); // right arrow
reader.replace(" <-", " &#x2190;"); // left arrow
addCustomReplaces(reader);
// System.out.println(uri);