ここでは、divの中のすべての段落タグをアンラップするサンプルhtmlがあります。現在のhtmlはこのように見えます。div jquery内のすべての段落タグをアンラップ
<div class="divclass">
Hi this is some text.
<p>testing test</p>
<p></p>
<p><a href="#" rel="nofollow">Testing text2</a></p>
</div>
でも、このようにしたいと思います。
<div class="divclass">
Hi this is some text.
testing test
<a href="#" rel="nofollow">Testing text2</a>
</div>
ありがとうございます。
http://stackoverflow.com/questions/17271884/jquery-unwrap-div-within-p –
これは、https://api.jquery.com/unwrap/ –