Can I collapse/fold cells in the exported HTML file from a notebook?

It seems like a have to see all the cell outputs unfolded in an exported HTML file from a notebook.
However, because some cells contain long outputs, I would like them to be collapsible for readability.