StringQ returns True both for unformatted and internally formatted strings. To get True only for unformatted ones I have thought up the following function stringQ.
Please, can you point out pitfalls, if any ? Thanks!
stringQ[str_] := Module[{ret, subStr},
subStr = "\!\(\*\nStyleBox[\"";
ret = Quiet[
If[
StringQ[str] && StringFreeQ[str, subStr]
,True, False, False
]
];
Return[ret];
];
StringQ
documentation. $\endgroup$