私は次のことを言っています
<h3>This is my heading</h3>
<p>This is my headingAnd this is part of a paragraph</p>
私は次のようになりたい
<h3>This is my heading</h3>
<p>And this is part of a paragraph...</p>
このコードを見つけました
$(function() {
var seen = {};
$('p, h3').each(function() {
var txt = $(this).text();
if (seen[txt])
$(this).remove();
else
seen[txt] = true;
});
});
しかし、段落に2つの単語が結合されているため、機能しません。データはRSSフィードから動的に取得されています。
前もって感謝します