Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

website to word array

 var res = $('body  *').contents().map(function () {
    if (this.nodeType == 3 && this.nodeValue.trim() != "") 
        return this.nodeValue.trim();
}).get().join(" ");
console.log(res);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #website #word #array
ADD COMMENT
Topic
Name
4+7 =