fixing wrong html close tags

fixes #7839 

@Gomez