Facing mass protests, Yemen's President Ali Abdullah Saleh said he would step down if he was allowed to leave with dignity.