\mathinner - forces the argument to appear 'inside' other formulas, and should be surrounded by additional space in certain circumstances.
{ \mathinner #1}
\mathinner command is used to force the argument to appear 'inside' other formulas, and should be surrounded by additional space in certain circumstances.
ab\text{inside}cd
ab\mathinner{\text{inside}}cd