Sfoglia il codice sorgente

Listing 5.20: stripping tags with text().

Frederic G. MARAND 8 anni fa
parent
commit
337fec6593
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  1. 1 0
      Chapter 5/05.js

+ 1 - 0
Chapter 5/05.js

@@ -51,6 +51,7 @@ $(document).ready(function () {
       .find('span.drop')
       .html('…')
       .end()
+      .text($clonedCopy.text())
       .prependTo($parentParagraph);
   });
 });