Eggzorcist Posted August 25, 2009 Share Posted August 25, 2009 I currently use mysql_real_escape function in order to secure my inputed strings, however, this has created complication when trying to show html codes which contain double quotes for styling purposes... I tried fixing that with: $descriptiondetails = str_replace("\"", "", $info['pagedescription']); $descriptiondetails = str_replace("\", "", $info['pagedescription']); (but this makes it an error as the forward slash makes it so that double quote not there, I also tried with double quotes... How could I do this? Thanks for any help! Quote Link to comment Share on other sites More sharing options...
dadamssg Posted August 25, 2009 Share Posted August 25, 2009 stripslashes(); ? Quote Link to comment Share on other sites More sharing options...
oni-kun Posted August 25, 2009 Share Posted August 25, 2009 Yes, I don't get why you're using str_replace when you could use something such as stripslashes(); that was meant to fix escaped variables. Is there something else we're missing? 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.