Return safety-sanitized html linked to partfiles. Rewrite the href="cid:...." attributes to point to the filenames in partfiles. Though not trivial, this should be possible using html.parser.
(html_text, partfiles)
| 10 | |
| 11 | |
| 12 | def magic_html_parser(html_text, partfiles): |
| 13 | """Return safety-sanitized html linked to partfiles. |
| 14 | |
| 15 | Rewrite the href="cid:...." attributes to point to the filenames in partfiles. |
| 16 | Though not trivial, this should be possible using html.parser. |
| 17 | """ |
| 18 | raise NotImplementedError("Add the magic needed") |
| 19 | |
| 20 | |
| 21 | # In a real program you'd get the filename from the arguments. |
no outgoing calls
no test coverage detected
searching dependent graphs…