Skip to content

Encoding of '&' character #31

Description

@biabbiassago

Hello,

I have come across the following issue using the 'alamode' template. I am using the addLinksToTables function as described here https://community.modeanalytics.com/gallery/table-links/.

However, one of the entries in my column includes an ampersand '&' sign (say, like 'arts & crafts', which does not get encoded so it breaks the link.
The problem is that the url does get encoded by the function, but the actual column name does not (so the following does not cover case with ampersand):

line 124 if alamode.js: cells.eq(columnToShow).html("" + cellContent + "")

If I encodeURIComponents before passing it to the addLinksToTables function, the table does not recognize the format properly. I could have not found a proper work around this.

Any chance the function could be modified to account for this specific case?

Thank you!!

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions