(toescape)
| 23 | |
| 24 | |
| 25 | def escape(toescape): |
| 26 | # handle extended unicode |
| 27 | toescape = toescape.encode('ascii', 'xmlcharrefreplace') |
| 28 | # still escape the basics |
| 29 | return ''.join(escape_table.get(chr(i), chr(i)) for i in toescape) |
| 30 | |
| 31 | |
| 32 | def save_svg(bv, function): |
no test coverage detected