Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
sayanarijit committed Feb 21, 2024
1 parent 28f51a9 commit 38f7a34
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tiptapy/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,10 @@ def escape_values_recursive(node):
skip_key = "html"

if isinstance(node, dict):
new = {
return {
escape(k): v if k == skip_key else escape_values_recursive(v)
for k, v in node.items()
}
return new
elif isinstance(node, list):
return [escape_values_recursive(x) for x in node]
elif isinstance(node, str):
Expand Down

0 comments on commit 38f7a34

Please sign in to comment.