califdon wrote:But how are you getting this? Are you receiving this in a POST variable from a form? Are you scraping this from another forum? There are a lot of issues here, and you're not explaining where this data comes from
Perhaps if you clarify things a bit and explain the scenario more fully - just like Califdon suggested - you would get clearer help.stevestark5000 wrote:i am getting an error with the code. are you sure the double quotes is ok?Code: Select all
preg_replace('\"', '"', $_POST[''])
Some built-in functions for you to consider include stripslashes() and htmlentities().