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 as well
This commit is contained in:
@@ -2,7 +2,10 @@ package android.text;
|
|||||||
|
|
||||||
public class Html {
|
public class Html {
|
||||||
public static Spanned fromHtml(String source) {
|
public static Spanned fromHtml(String source) {
|
||||||
return new SpannableString(source.replace("<br/>", "\n").replace("<br>", "\n")); // TODO when JTidy is in use: s/<br \/>//g
|
return new SpannableString(source.replace("<br/>", "\n")
|
||||||
|
.replace("<br>", "\n")
|
||||||
|
.replace(" ", " "));
|
||||||
|
// TODO when JTidy is in use: s/<br \/>//g
|
||||||
}
|
}
|
||||||
|
|
||||||
public static String escapeHtml(CharSequence source) {
|
public static String escapeHtml(CharSequence source) {
|
||||||
|
|||||||
Reference in New Issue
Block a user