Work around embedding of bold tags in XML for all hafas based providers

This commit is contained in:
Andreas Schildbach 2013-08-24 12:44:16 +02:00
parent 2e9f7d59c7
commit d2cd0b6603
2 changed files with 2 additions and 2 deletions

View file

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

View file

@ -202,8 +202,6 @@ public class NvvProvider extends AbstractHafasProvider
reader.replace("</ul>", " ");
reader.replace("<li>", " ");
reader.replace("</li>", " ");
reader.replace("<b>", " ");
reader.replace("</b>", " ");
}
public List<Location> autocompleteStations(final CharSequence constraint) throws IOException