• I am using $_POST[‘item_meta’] to send information to a mySQL database and there is an & in the text. It is being changed to & when sent to the mySQL database.

    How can I stop this from happening?

Viewing 1 replies (of 1 total)
  • Moderator bcworkz

    (@bcworkz)

    You shouldn’t stop it. It’s done for security reasons to help prevent SQL injection attacks. When such content is output, it usually appears correctly. In the cases where it’s a problem, after you get the data from the DB, just replace all occurrences of ‘&’ with ‘&’.

Viewing 1 replies (of 1 total)
  • The topic ‘wp_kses_post()’ is closed to new replies.