QueryPath を使用して、と埋め込み<div>
が混在するサイトの埋め込みビデオをラップしています。<object>
<iframe>
次のコードを試しました:
$content = qp($content)
->find('object,iframe,a.evdPlayer')
->wrap('<div class="splashBack"></div>')
->top('body')->children()
->html(); // << It's wanting to remove the </iframe> Grrr.
return $content;
<iframe></iframe>
しかし、コードをに変更したいよう<iframe />
で、何らかの理由で混乱しています。ラッピングしているタグを変更しないようにする方法はありますか?
前もって感謝します!