I'm trying to write a caption that contains square brackets, e.g.
[caption id="attachment_3735" align="alignleft" width="640" caption="Content containing [square brackets]"]<img.... />[/caption]
WordPress reaches the ] after brackets and treats it as the closing ] of the tag, leaving a floating "] in the code.
Any ideas?