Tex markup sanitization