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