I have a custom post form that sends data to a page which uses wp_insert_post to create a post. I can easily sanitize most data, but I have some troubles with my tags, I retrieve in an array:
$tags = $_POST['tags'];
Before using these tags as tags_input, how can I successfully sanitize all names?
Thanks!