You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Why do we escape the content when setting data to the clipboard? I think we should only escape in the second case because we import from clipboard, right?
I don't think so because it's on the plain text. I'll submit a PR to remove escape from the plain text but the others are needed to display HTML correctly.
Activity
fxha commentedon Jun 6, 2020
@Jocs gabrielegiammatteo@3960f42
Why do we escape the content when setting data to the clipboard? I think we should only escape in the second case because we import from clipboard, right?
Jocs commentedon Jun 7, 2020
I don’t remember the specific reason, maybe it is to prevent XSS attacks?
fxha commentedon Jun 7, 2020
I don't think so because it's on the plain text. I'll submit a PR to remove
escapefrom the plain text but the others are needed to display HTML correctly.