1
我有這種類型的字符串,並帶有iframe(youtube video)。我怎樣才能從字符串結束回聲僅文本iframe?如何從字符串中刪除iframe標記?
Scelerisque scelerisque. Sit elit vut sit, aliquam. Elementum. Enim dignissim nisi mauris, aliquet aenean, proin, porttitor tristique et, pulvinar tincidunt! Diam risus eu diam, ultrices diam pulvinar platea ridiculus augue adipiscing aliquet adipiscing a mid lundium, ultricies eros, pulvinar? Etiam, sagittis dignissim egestas sit.<iframe width="560" height="315" src="http://www.youtube.com/embed/f8Q_BHzJ0fI" frameborder="0" allowfullscreen></iframe>Cum integer. Sit nisi. Augue, risus, scelerisque aliquam aliquet nunc nascetur purus! Diam ut sit lundium a phasellus ac pulvinar egestas nec! Lectus urna habitasse lacus turpis nunc quis tortor integer.
['用strip_tags()'](http://php.net/strip_tags)如果你舒適的去除所有標籤 – 2013-02-21 16:40:10
裏面有文字(標籤爲粗體,斜體一些造型.. )。 – Sasha 2013-02-21 16:44:08
希望你安全地從這些標籤中刪除屬性 – 2013-02-21 16:45:05