Do I need to sanitize $_POST[‘keyword’] before send to ‘s’ parameter?
You can use below WordPress function to sanitize the value: sanitize_text_field( $_POST[‘keyword’] ); You can also check more detail here: https://developer.wordpress.org/reference/functions/sanitize_text_field/