私はliで関連する記事のリストを作り直しています。元の内容を乱さずにタグとスパンの間の " - "を削除したいと思います。ページ(リンク)に私はjQueryのを使用する必要があり、これを行うための簡単な方法があるかどうか私はわからないリスト項目に " - "が含まれている場合.remove()?
<div class="related-articles card">
<h3 class="h2">
<i class="fa fa-book text-brand-primary-dark"></i> Related Articles
</h3>
<ul>
<li>
<a href="http://example.com/article-1">Title One</a>
-
<span> Some Related Preview Text... </span>
</li>
<li>
<a href="http://example.com/article-2">Title Two</a>
-
<span> Some Related Preview Text... </span>
</li>
<li>
<a href="http://example.com/article-3">Title Three</a>
-
<span> Some RelatedPreview Text... </span>
</li>
</ul>
ナーレンの答えはベットですrでも! –