You've already forked android_translation_layer
mirror of
https://gitlab.com/android_translation_layer/android_translation_layer.git
synced 2025-10-27 11:48:10 -07:00
Html.fromHtml(): replace <br> as well
Gtk fails to parse <br> tags in markup
This commit is contained in:
@@ -2,7 +2,7 @@ package android.text;
|
||||
|
||||
public class Html {
|
||||
public static Spanned fromHtml(String source) {
|
||||
return new SpannableString(source.replace("<br/>", "\n")); // TODO when JTidy is in use: s/<br \/>//g
|
||||
return new SpannableString(source.replace("<br/>", "\n").replace("<br>", "\n")); // TODO when JTidy is in use: s/<br \/>//g
|
||||
}
|
||||
|
||||
public static String escapeHtml(CharSequence source) {
|
||||
|
||||
Reference in New Issue
Block a user