It's done using the following tags:

Highlight the text after the [spoiler]sign, so you can see the rest of this sentence.[/spoiler]

which turns out like this...

Highlight the text after the (SPOILER)sign, so you can see the rest of this sentence.