Browse Source

Listing 5.20: stripping tags with text().

Frederic G. MARAND 8 years ago
parent
commit
337fec6593
1 changed files with 1 additions and 0 deletions
  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);
   });
 });