[add_snippet] add another candidate for doing toHTML