我使用的是一個自定義的cms,它在php中。當我嵌入像youtube一樣的iframe時,facebook以p標籤包圍,我不希望iframe被p標記包圍。我如何刪除這個p標籤? (使用PHP) 在此先感謝您的幫助。 在我CMS-從php中的iFrames中刪除段落標籤
<p><iframe src="https://www.youtube.com/embed/_GuOjXYl5ew" allowfullscreen="" width="700" height="415" frameborder="0"></iframe></p>
嵌入後,我需要的代碼要像這個 -
<iframe src="https://www.youtube.com/embed/_GuOjXYl5ew" allowfullscreen="" width="700" height="415" frameborder="0"></iframe>
感謝。此代碼適用於@ramirez –