Commit Graph

4 Commits

Author SHA1 Message Date
Dexter Chua 28d0dc2874
Update bleach and packaging (#1021) 2021-01-03 11:51:58 +08:00
Dexter Chua 869044ba2e
Build six using usual build system (#1010) 2021-01-02 16:59:28 +08:00
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