You can use sanitization and escaping functions that WordPress provides
for example, you might need to do this:
$sanitize_value = sanitize_text_field( $_POST[$this->unique] );
Here are the detail that you needed.
https://codex.wordpress.org/Validating_Sanitizing_and_Escaping_User_Data