Prevent unclosed tags