Jump to content

Single quote in img src


xXREDXIIIXx

Recommended Posts

Example file name = tag-'em.jpg

 

I tried to use str_replace("'", "\'", $name);

 

outputs <img src="http://www.example.com/tag-%5C" em-and-bag-\="" em.jpg="">

 

been googling for last hour or so I cant figure it out.

 

show me the code that displays the link it self.

 

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.