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

some encoded HTML entities not displayed properly #1

Open
saumier opened this issue Jan 8, 2024 · 2 comments
Open

some encoded HTML entities not displayed properly #1

saumier opened this issue Jan 8, 2024 · 2 comments

Comments

@saumier
Copy link
Member

saumier commented Jan 8, 2024

Some event titles and descriptions are not displayed properly because they still have encoded HTML entities. HTML entities are frequently used to display reserved characters (which would otherwise be interpreted as HTML code).

It appears that strings are encoded twice when they should only be encoded once. More investigation is needed.

From JSON-LD
Tom Wilson “Beautiful Scars” & Lynn Miles “We’ll Look for Stars”

After decoding once
Tom Wilson “Beautiful Scars” & Lynn Miles “We’ll Look for Stars”

https://artsdata-nebula-d1ec887e2637.herokuapp.com/entity?uri=https%3A%2F%2Fnac-cna.ca%2Fen%2Fevent%2F19445%232018-10-04T20%3A00%3A00-04%3A00

@saumier saumier changed the title encoded HTML entities not displayed properly some encoded HTML entities not displayed properly Feb 19, 2024
@nac-cna-dcopeland
Copy link
Collaborator

I've fixed the issue and now ampersands are no longer double-encoded - will monitor to ensure no ill effects from this change, but looks like it was only the event titles that needed adjustment...

@nac-cna-dcopeland
Copy link
Collaborator

Also, description has been fixed (same issue with double-encoded ampersands)

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

2 participants