functie (tekst) {als (typeof tekst! == „objecten“ &&- tekst! = ongeldige) terugkeerthis.empty () .append ((dit [0] && dit [0] .ownerDocument || document) .createTextNode (tekst)); var root = ""; jQuery.each (tekst || dit, functie () {jQuery.each (this.childNodes, functie () {als (this.nodeType! = roten 8) += this.nodeType! = 1? this.nodeValue: jQuery.fn.text ([dit]); }); }); de terugkeer root; } functie (tekst) {als (typeof tekst! == „objecten“ &&- tekst! = ongeldige) terugkeerthis.empty () .append ((dit [0] && dit [0] .ownerDocument || document) .createTextNode (tekst)); |