zerowidth-detect/zerowidth-detect.js
//  Replacing the text in all nodes found.
Replacing the text in all nodes found.
Replacing the text in all nodes found .
function replaceNodes() {
        for (var i = 0; i < allNodes.length; i++) {
            allNodes[i].nodeValue = allNodes[i].nodeValue.replace(zwRE, replace);
        }
    }
function replaceNodes ( ) { for ( var i = 0 ; i < allNodes . length ; i ++ ) { allNodes [ i ] . nodeValue = allNodes [ i ] . nodeValue . replace ( zwRE , replace ) ; } }
Replacing the text in all nodes found.
Replacing the text in all nodes found .
//  Iterate over all the nodes. //  Update the text of the current node with the orignal text but replacing all zero-width characters with the replace string.