Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

&nbsp replace javascript


function replaceNbsps(str) {
  var re = new RegExp(String.fromCharCode(160), "g");
  return str.replace(re, " ");
}

textNode.nodeValue = replaceNbsps(textNode.nodeValue);

Source by coders911.org #
 
PREVIOUS NEXT
Tagged: #replace #javascript
ADD COMMENT
Topic
Name
9+1 =