This may not be a mistake, as the documentation does not say what exactly fromHTML() does, but this is a problem for me nonetheless. If the provided string contains two or more spaces in the sequence, fromHTML() removes all but one:
Html.fromHtml("Test 123").toString() (java.lang.String) Test 123
If I replaced the spaces with , it appears to be behaving as expected, but it makes me sad in other parts of my program:
Html.fromHtml("Test 123").toString() (java.lang.String) Test 123
Is this the expected behavior?
source share