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 replace HTML tags
For the easy command I can understand, but for the search command on preg_replace with letters like ~, $1, /n,
and etc, I dont understand at all...
If I want to replace
<script src="core.js"></script>
into
<temp src="library/js/core.js"></temp>
How can I implement preg_replace?
Thank you very much for your advice.