But you wont get away from this problem just by using single quotes. JSON for example must have double quotes. You should use regex searches for this kind of thing to be safer