Yes, this is what Caja was designed to do. You may not need all of Caja, though. Can you tell us more about what you'd like to allow them to do?
On Mon, Jan 7, 2019 at 8:32 AM Yehonathan Sharvit <[email protected]> wrote: > > Hello Caja folks, > > I'd like to allow users to eval javascript code snippets on my website. > But eval is too dangerous. > > I was thinking of using Caja to provide a sanitized version of eval. > > Is it possible with caja to evaluate dynamic code snippets provided by users? > If yes, how? > > Thanks, > Yehonathan > > -- > > --- > You received this message because you are subscribed to the Google Groups > "Google Caja Discuss" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. -- Mike Stay - [email protected] http://math.ucr.edu/~mike https://reperiendi.wordpress.com -- --- You received this message because you are subscribed to the Google Groups "Google Caja Discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
