Skip to content

Clipboard issues with escape characters #1821

Closed

Description

@fxha

Description

All JavaScript escape characters are encoded before copied to clipboard. E.g. f'(x) is copied as f'(x) to clipboard.

Expected behavior:

f'(x)

Actual behavior:

f'(x)

Versions

  • Mark Text: v0.16.0.rc-2
  • Operating system: all

Activity

  1. added
    🐛 bug
    on Dec 14, 2019
  2. self-assigned this
    on Dec 26, 2019
  3. fxha commented on Jun 6, 2020

    @fxha
    ContributorAuthor

    @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?

  4. Jocs commented on Jun 7, 2020

    @Jocs
    Member

    I don’t remember the specific reason, maybe it is to prevent XSS attacks?

  5. fxha commented on Jun 7, 2020

    @fxha
    ContributorAuthor

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

🐛 bug🔭 area/muya

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions