mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-02-24 03:35:58 +00:00
committed by
Alex Hart
parent
56a8451d07
commit
9d9e6e2972
@@ -1,9 +1,11 @@
|
||||
package org.thoughtcrime.securesms.util;
|
||||
|
||||
import android.text.Html;
|
||||
|
||||
import androidx.annotation.NonNull;
|
||||
|
||||
public class HtmlUtil {
|
||||
public static @NonNull String bold(@NonNull String target) {
|
||||
return "<b>" + target + "</b>";
|
||||
return "<b>" + Html.escapeHtml(target) + "</b>";
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user