HTML e-mail to plain text: fix bug
HTML e-mail to plain text: fix bug: a task in smol-software-harbor (Harbor dataset). The plain-text versions of our newsletters contain CSS rules and tracking JavaScript, because html2text.py keeps the text inside <style and <script elements ( test skips scripts and styles fails). Their content…
The task
The plain-text versions of our newsletters contain CSS rules and tracking JavaScript, because `html2text.py` keeps the text inside `<style>` and `<script>` elements (`test_skips_scripts_and_styles` fails). Their content must be dropped entirely (nested correctly). Fix it and run `python3 -m pytest -q`.
Part of efederici/smol-software-harbor.