html = html.replaceAll("‍","");
html = html.replaceAll(" ","");
html = html.replaceAll("‌","");
html = html.replaceAll(" ","");
html = html.replaceAll(" ","");
html = html.replaceAll(" ","");
html = html.replaceAll("​","");
Just set these special characters to empty.
Detailed explanation of 6 kinds of spaces in html https://blog.csdn.net/u014068781/article/details/77962423