Browse Source

Listing 5.20: stripping tags with text().

Frederic G. MARAND 8 năm trước cách đây
mục cha
commit
337fec6593
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  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);
   });
 });