Updated handling of self-closing tags
Added tests for ExemptTags option and self-closing tags handling