fixed bug where details can include unclosed html tags