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