This can be done.
But there are no buttons for it in the composer box.
Syntax
<details> Stuff you want hidden </details>
Stuff you want hidden
To have something other than “Details” as the description of the hidden text, you need to use the summary tag as well.
<details><Summary>Spoilers</Summary> Stuff you want hidden </details>