我如何从描述中清除所有不在标签内的 url。并且还保留所有img url?
例如,结果应该是这样的:
之前的描述:
this is my description www.url.com and other stuff.
i have a picture <img src="www.url.com"> and other desc stuf..
sample text goes here and here..
之后的描述应该是:
this is my description and other stuff.
i have a picture <img src="www.url.com"> and other desc stuf..
sample text goes here and here..
非常感谢。