Simple task: spanned by value

This commit is contained in:
M66B
2023-03-27 18:22:44 +02:00
parent 55b97da356
commit 5fb25a708d
2 changed files with 7 additions and 4 deletions

View File

@@ -78,10 +78,6 @@ public class HtmlEx {
* @return string containing input converted to HTML
*/
public /* static */ String toHtml(Spanned text, int option) {
if (!Helper.isUiThread()) {
text = new SpannableStringBuilderEx(text);
BaseInputConnection.removeComposingSpans((Spannable) text);
}
StringBuilder out = new StringBuilder();
withinHtml(out, text, option);
return out.toString();