Adding a \ to an <img tag
Posted: Wed Jul 07, 2004 10:16 am
Okay, if my users are inserting some text, and they want to add an image, they can just do it with html, ie:
How can I automatically go through their post string and make that into
I assume it's to do with preg_something but I'm no good at that 
Also, it there a way to add a default alt tag if it hasn't already got one, ie:
Code: Select all
<img src="bob.jpg">Code: Select all
<img src="bob.jpg" \>Also, it there a way to add a default alt tag if it hasn't already got one, ie:
Code: Select all
<img src="bob.jpg" alt="Image" \>