You wrap the text in <spoiler>HIDDEN TEXT HERE</spoiler>, but use brackets ([ and ]) instead. You can also highlight the text you want to hide and click the very last button in the third row when in advanced mode, the one that looks a bit like this: [...]