Have you ever wanted to display a shortcode in a post? i.e. like this: [gallery]
It’s actually quite simple thanks to a little-known feature of WordPress. All you need to do is double up on the brackets:
[[gallery]]
[[example]foobar[/example]]
Note where the double brackets are in that last example.