代码改变世界

Android Html.fromHTML 空格被合并 removes double space

// htmlText = "This    is test";
public String fixDoubleSpaceIssue(String htmlText)
{
    htmlText= text.replace("   ", "   ");
    htmlText= text.replace("  ", "  ");
    return htmlText;
}





转自
https://stackoverflow.com/questions/16311416/html-fromhtml-removes-double-space?r=SearchResults

posted on 2020-08-06 16:51  Captain林  阅读(599)  评论(0编辑  收藏  举报

导航