2 ms·
Google feel confident enough that they wont be returning malicious JavaScript. Obviously, you should use JSON.parse in 99.99% of cases, but if you can trust th
by jamesrom 13y ago
Google feel confident enough that they wont be returning malicious JavaScript.
Obviously, you should use JSON.parse in 99.99% of cases, but if you can trust the source of the content (not as easy as it sounds), and you have no other alternative, eval wont cause any security problems.