resolve promise with html