\fbox{text}
The \fbox command is exactly the same as the \mbox command, except that it puts a rectangular frame around the outside of the box that it creates.
The \fbox command is robust.