0
<div class="media_embed" height="qqq" width="www">
<a href="http://giphy.com/gifs/dancing">via GIPHY</a>
<div class="media_embed" height="eee" width="rrr">
<a href="http://giphy.com/gifs/movie">via GIPHY</a>
我想這樣做: 我不得不從錨標記得到德href
並把它bewtween img
標籤,並添加figure
標籤如何使用正則表達式在php中用「img」代替「a」標籤?
<figure>
<img src="http://giphy.com/gifs/dancing" />
</figure>
<figure>
<img src="http://giphy.com/gifs/movie" />
</figure>
可以請你幫我
不要使用正則表達式,使用解析器。 – chris85
請標記我的答案完成此討論。 – Mohammad