This is probably true, we might've gone a little overkill with the global searches. We were worried about the &s from the &nbsp; bug, and also > in Mi'gmaq data, since it's used to mean "acts on" in verb glosses (ie. "I see her" is glossed "see-1>3").

Is there a quick way to do "contains" in javascript? I couldn't see one, but if you can think of a function then we can just check through the input and keep a counter on all the latex chars, and once it hits critical mass (say 5?) we can return result where it's identical to the input.