Maybe this isn't a bug since the documentation doesn't say much about what fromHTML()
exactly does, but it's a problem for me nonetheless. If the provided string contains two or more spaces in sequence, fromHTML()
removes all but one:
Html.fromHtml("Test 123").toString()
(java.lang.String) Test 123
If I replace the spaces with
it seems to behave as expected, but causes me grief in other parts of my program:
Html.fromHtml("Test 123").toString()
(java.lang.String) Test 123
Is this expected behavior?