Commit Graph

2 Commits

Author SHA1 Message Date
Roman Yurchak 67eab0c082
MNT update pure python packages (#745) 2020-10-17 09:07:19 +02:00
Marc Abramowitz e92ba1c901 Add bleach
for sanitizing HTML. Example:

```js
languagePluginLoader.then(() => {
  // pyodide is now ready to use...
  pyodide.loadPackage('bleach').then(() => {
    pyodide.runPython(`
import bleach

print(bleach.clean('There is good stuff <script>and bad stuff</script> in here.'))
    `);
  });
});
```

leads to the output:

```
There is good stuff &lt;script&gt;and bad stuff&lt;/script&gt; in here.
```
2019-03-15 00:44:51 -07:00