Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1a333a81 authored by Danny Baumann's avatar Danny Baumann Committed by Michael Bestas
Browse files

Fix phone number returned by 'Das Telefonbuch' for business numbers.

Some obfuscation spans are inserted into the HTML for whatever reason.

Change-Id: Ib69dac5c79b01947d6085bf27b61c0f7a4d73a4c
parent 0e715d97
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -72,6 +72,9 @@ public class TelefonbuchApi {
            boolean dotall, boolean removeSpans) {
        String result = LookupUtils.firstRegexResult(output, regex, dotall);
        if (result != null && removeSpans) {
            // completely remove hidden spans (including contents) ...
            result = result.replaceAll("<span class=\"hide\".*?\\/span>", "");
            // ... and remove span wrappers around data content
            result = result.replaceAll("</?span.*?>", "");
        }
        return LookupUtils.fromHtml(result);