开发者

turn urls into links but not break images src or Flash embeds in php

I had a code that turned http:// in to <a link开发者_C百科s. the issue with it was that it would break images and flash players. It was using Regex. Does anyone know of a Regex code that would do this?


That regex will work fine, but just include more measures to make sure that a leading src are excluded. I assume it breaks by src="http://myimage" becoming src="

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜