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="
精彩评论