AHHHH!
Aim
To convert HTML into XHTML code, e.g. make <br> <br />
Code
$text = preg_replace('/(<img .*)("|\'| )>/i','\1\2 />',$text);
The problem
It removes the / from the source. E.g.
<img src="../myimages/blah.gif"> turns that to:
<img src="..myimages/blah.gif" />
So it takes the first slash away meaning the image does not work.
Any suggestions?