Anyone know how to modify the any img tag from array?
For example: I got a json response from external site, and decode it:
......
<img alt=\"Image1\" src=\"/sites/default/files/Image1.jpg\"/>
.....
This array will throw broken image. Is it possible to modifying this array before I insert to the DB,
something like:
....
<img alt=\"Image1\" src=\"http://example.com/sites/default/files/Image1.jpg\"/>
...