...and finally if your signature is meant to point to prepared statements....
That would work like below and actually be the safest way for sanitizing data:
$conn = new mysqli(....);
$query = 'INSERT INTO users (post_id, username, password) VALUES(?,?,?)';
$stmt = $conn->prepare($query);
$postID = '9A32142ADA223';
$username = 'Herodot';
$password = 'blah'
$stmt->bind_param('sss', $postID, $username, $password);
$stmt->execute();
Stripping html entities won't hurt either before displaying or before inserting to prevent 2nd order "creativity".