The procedure is the following:
To cure a zombie villager, you will need to trap it so that it can't escape and won't burn during the day, then hit it with a splash potion of weakness and then feed it a golden apple. After a few minutes the zombie should change into a villager.
By feed it, it...