wdb icon indicating copy to clipboard operation
wdb copied to clipboard

Dictionary key repr not escaped.

Open amcgregor opened this issue 3 years ago • 0 comments

Seems related to the very old #81 in that certain values (dictionary keys, in our case) are not escaped.

Use of repr() as keys results in apparently no keys. (Web inspector shows that they're being interpreted as HTML.)

MCVE

Enter the following in a presented interactive REPL or traceback:

{'<a href="about:blank">Testing</a>': 'value'}

Or, attempt to use the REPR of a class as keys:

{repr(type): 'value'}

This was exceptionally confusing when our plugin registry showed an empty string for every key.

Screenshot

Screenshot 2022-12-06 at 10 36 38

amcgregor avatar Dec 06 '22 15:12 amcgregor