generate tag/attr/text from html macro