add autoclosed tags support