wp_update_post behaves differently for different user role

I solved this problem by creating a new user type with unfiltered_html set to true

$result = add_role(
    'jobseeker',
    __( 'Job Seeker' ),
    array(
        'read'         => true, 
        'edit_posts'   => true,
        'delete_posts' => true,
        'delete_published_posts' => true, 
        'upload_files' => true,
        'edit_others_posts' => false, 
        'delete_others_posts' => false,
        'unfiltered_html' => true, //this line does the magic


    )
);
if ( null !== $result ) {
    echo 'Yay! New role created!';
}
else {
    echo 'Oh... the basic_contributor role already exists.';
}

tech