Solutions for spaces such as &zwj, , &zwnj when transferring HTML

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

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325566625&siteId=291194637