diff options
| author | Michael Williamson <mike@zwobble.org> | 2013-12-14 15:04:13 +0000 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2013-12-14 15:04:13 +0000 |
| commit | 75f454157737e34567a2325dc1c8fd7ca7b6e9a6 (patch) | |
| tree | 36eea15618567f4cb700be9d257e7d5cfa001fc5 /mammoth | |
| parent | c1eb161cc9d4b8e41d85643ba7b090f2f2d95471 (diff) | |
Escape attribute values
Diffstat (limited to 'mammoth')
| -rw-r--r-- | mammoth/html_generation.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mammoth/html_generation.py b/mammoth/html_generation.py index 37d191a..52f9f92 100644 --- a/mammoth/html_generation.py +++ b/mammoth/html_generation.py @@ -55,6 +55,6 @@ def _generate_attribute_string(attributes): return "" else: return "".join( - ' {0}="{1}"'.format(key, value) + ' {0}="{1}"'.format(key, _escape_html(value)) for key, value in attributes.iteritems() ) |
