1. 18 Mar, 2019 1 commit
  2. 15 Mar, 2019 4 commits
    • Michael Droettboom's avatar
      Merge pull request #340 from msabramo/bleach · 0a92640d
      Michael Droettboom authored
      Add bleach
      0a92640d
    • Marc Abramowitz's avatar
      Add docutils · d14eee11
      Marc Abramowitz authored
      Example: If you do this:
      
      ```js
      languagePluginLoader.then(() => {
        // pyodide is now ready to use...
        pyodide.loadPackage('docutils').then(() => {
          pyodide.runPython(`
      import docutils.core
      
      print(docutils.core.publish_string("\`Python <http://www.python.org/>\`_ is **cool**!", writer_name='html5', settings_overrides={'embed_stylesheet': False}).decode('utf-8'))
          `);
        });
      });
      ```
      
      then the output is:
      
      ```
      <!DOCTYPE html>
      <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
      <head>
      <meta charset="utf-8"/>
      <meta name="generator" content="Docutils 0.14: http://docutils.sourceforge.net/" />
      <title>&lt;string&gt;</title>
      <link rel="stylesheet" href="/lib/python3.7/site-packages/docutils/writers/html5_polyglot/minimal.css" type="text/css" />
      <link rel="stylesheet" href="/lib/python3.7/site-packages/docutils/writers/html5_polyglot/plain.css" type="text/css" />
      </head>
      <body>
      <div class="document">
      <p><a class="reference external" href="http://www.python.org/">Python</a> is <strong>cool</strong>!</p>
      </div>
      </body>
      </html>
      ```
      d14eee11
    • Michael Droettboom's avatar
      Bump version: 0.8.2 → 0.9.0 · 89eca5f5
      Michael Droettboom authored
      89eca5f5
    • Marc Abramowitz's avatar
      Add bleach · e92ba1c9
      Marc Abramowitz authored
      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.
      ```
      e92ba1c9
  3. 14 Mar, 2019 3 commits
  4. 13 Mar, 2019 4 commits
  5. 12 Mar, 2019 3 commits
  6. 01 Mar, 2019 1 commit
  7. 28 Feb, 2019 4 commits
  8. 25 Feb, 2019 2 commits
  9. 22 Feb, 2019 2 commits
  10. 21 Feb, 2019 6 commits
  11. 20 Feb, 2019 2 commits
  12. 15 Feb, 2019 1 commit
  13. 14 Feb, 2019 5 commits
  14. 12 Feb, 2019 1 commit
  15. 07 Feb, 2019 1 commit