Show More
@@ -16,6 +16,7 b" __all__ = ['Inspector','InspectColors']" | |||||
16 | import ast |
|
16 | import ast | |
17 | import inspect |
|
17 | import inspect | |
18 | from inspect import signature |
|
18 | from inspect import signature | |
|
19 | import html | |||
19 | import linecache |
|
20 | import linecache | |
20 | import warnings |
|
21 | import warnings | |
21 | import os |
|
22 | import os | |
@@ -531,7 +532,7 b' class Inspector(Colorable):' | |||||
531 | """ |
|
532 | """ | |
532 | defaults = { |
|
533 | defaults = { | |
533 | 'text/plain': text, |
|
534 | 'text/plain': text, | |
534 | 'text/html': '<pre>' + text + '</pre>' |
|
535 | 'text/html': '<pre>' + html.escape(text) + '</pre>' | |
535 | } |
|
536 | } | |
536 |
|
537 | |||
537 | if formatter is None: |
|
538 | if formatter is None: |
General Comments 0
You need to be logged in to leave comments.
Login now