Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
由于安全始终是一个值得关注的问题,所以每当我需要清理我不知道是否安全的数据时,是否可以只使用以下方法?
function clean_data($input) { return mysqli_real_escape_string($cxn, htmlspecialchars(strip_tags(trim($input)))); }
或者是我不应该做的事情?