Plugin Export2Html. Clean code