传输HTML时出现&zwj、 、&zwnj等空格的解决办法

html = html.replaceAll("‍","");
        html = html.replaceAll(" ","");
        html = html.replaceAll("‌","");
        html = html.replaceAll(" ","");
        html = html.replaceAll(" ","");
        html = html.replaceAll(" ","");
        html = html.replaceAll("​","");

只需把这些特殊字符设置成空。

html 6种空格详解https://blog.csdn.net/u014068781/article/details/77962423

猜你喜欢

转载自my.oschina.net/u/3446892/blog/1800310
今日推荐