Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Encoding of '&' character #31

Open
biabbiassago opened this issue May 31, 2018 · 0 comments
Open

Encoding of '&' character #31

biabbiassago opened this issue May 31, 2018 · 0 comments

Comments

@biabbiassago
Copy link

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!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant