My requirement is to remove all img tags with doesnt have img specified in it. I tried doing with help of regular expression, that is content.replace(/<img[^>]*>/g,""), but this removes all img tags, I want to validate this to replace only with empty img tags. Thanks in advance.
My requirement is to remove all img tags with doesnt have img specified in
Share
you could do: