Heya all!
I got some little question for you.
code:
<img src="image.png" alt="blah" /> this is an image.
should become
code:
<a href="image.png">blah</a> this is an image.
I wanted to do this using a preg replace, but I suck in writing patterns.
Can anyone help? make sure that images are changed into hyperlinks... if there's no alt, the filename should be the text (so not only preg_replace but also some if/else thingies
thanks in advance
Bram
oh almost forgot: it's PHP...