Skip to content

Whatsapp share link does not escape html entities #10746

@vdwijngaert

Description

@vdwijngaert

Prerequisites

  • I have searched for similar issues in both open and closed tickets and cannot find a duplicate.
  • The issue still exists against the latest stable version of Elementor.

Description

Code: https://github.com/elementor/elementor/blob/master/assets/lib/share-link/share-link.js

The whatsapp share link includes the title, but it does not get properly escaped. So if we have a post with let's say a quote in it (" or "), when we share it, whatsapp will cut it off starting at the ampersand, for obvious reasons.

Example:

https://api.whatsapp.com/send?text=*Lorem%20pisum%20"dolor%20sit"*%0Atext%0Ahttps://www.example.com

Maybe wrap the title in encodeURIComponent, as it should be?

Metadata

Metadata

Assignees

No one assigned

    Labels

    status/mergedIndicates when a Pull Request has been merged to a Release.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions