remove self-closing tags