0

Since security is always something that is a concern, is it fine to just use the following method whenever I need to clean data that I don't know is safe?

function clean_data($input) {
  return mysqli_real_escape_string($cxn, htmlspecialchars(strip_tags(trim($input))));
}

Or is something that I shouldn't do?

John
  • 81
  • 8

0 Answers0