fix trailing html