xXREDXIIIXx Posted February 14, 2010 Share Posted February 14, 2010 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. Quote Link to comment Share on other sites More sharing options...
BK87 Posted February 14, 2010 Share Posted February 14, 2010 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. Quote Link to comment Share on other sites More sharing options...
xXREDXIIIXx Posted February 14, 2010 Author Share Posted February 14, 2010 just figured it out sorry str_replace("'", "%27", $name); Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.