Set html snippet in metadata instead of gen.context