Hi,
I got $text that contains text with images, links, formatting. And I need to replace all links in this text.
Example:
from
<a href="http://example.com/">example</a>
make
<a href="http://mysite.com/goto.php?url=http://example.com/">example</a>
As you see, only thing I need is to add http://mysite.com/goto.php?url= to each links in $text.
Can somebody help me with php code?