api-impl: add misc stubs for Open Sudoku

This commit is contained in:
Kilian "CaféHaine" Guillaume
2024-11-07 18:31:27 +01:00
committed by Mis012
parent 1fb5be92dc
commit e5a6ee2b55
8 changed files with 41 additions and 2 deletions

View File

@@ -11,6 +11,10 @@ public class Html {
}
public static Spanned fromHtml(String source) {
return Html.fromHtml(source, 0);
}
public static Spanned fromHtml(String source, int flags) {
return new SpannableString(source.replace("<br/>", "\n")
.replace("<br>", "\n")
.replace("&nbsp;", " "));