Q:

Display WordPress Shortcode as Plain Text

Is there any way to display WordPress shortcode as a plain text on the post?
For example to show [gallery] just as this.
Thank you

A:

I think the easiest way is to double the brackets, but you could also replace the brackets as following:
[ with &#91;
] with &#93;

