removing trailing html