Skip to content

Commit

Permalink
No double escape
Browse files Browse the repository at this point in the history
  • Loading branch information
sayanarijit committed Feb 12, 2024
1 parent 599e182 commit 1ceec14
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions tiptapy/macros.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,7 @@ def handle_links(attrs):
):
attrs["target"] = "_blank"
attrs["rel"] = "noopener nofollow"
retval = " ".join(
f'{escape(k)}="{escape(v)}"' for k, v in attrs.items() if v is not None
)
retval = " ".join(f'{k}="{v}"' for k, v in attrs.items() if v is not None)
return retval

return handle_links
Expand Down

0 comments on commit 1ceec14

Please sign in to comment.