Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sayanarijit committed Feb 13, 2024
1 parent 264d1ca commit 0758ba1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tiptapy/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,9 @@ def escape_values_recursive(node):
esc_k = escape(k)
if k != esc_k:
del node[k]
if esc_k != skip_key:
if esc_k == skip_key:
node[esc_k] = v
else:
node[esc_k] = escape_values_recursive(v)
elif isinstance(node, list):
for i, v in enumerate(node):
Expand Down

0 comments on commit 0758ba1

Please sign in to comment.