Can I have a detail explain about how can I replace with tag with current attr using php?
I read manual and some referencs
How to use php preg_replace to replac
You need to learn about regular expressions, this site is a useful resource;
A quick example with preg_replace could be something like this - it could be improved, but hopefully will give you the idea...
'; $pattern = '/