fixing unclosed html tags