Skip to content

Safer outputs ​

A notebook shared by a link can hold anything… Basthon therefore strengthens the security of everything shown in the notebook and the console:

  • HTML, SVG and Markdown are always sanitized with DOMPurify;
  • the JavaScript code of outputs runs in an isolated frame (sandbox), with no access to the page;
  • an output can no longer overflow its display area.

Interactive outputs keep working: they simply run in their sandbox.

Play with it!

Script run in a sandbox