handle self closing html tags