ensure closing html