fixing invalid html tag in a post