culturecreates / artsdata-planet-nac

National Arts Centre in Ottawa - pipeline to extract JSON-LD from nac-cna.ca into Artsdata
0 stars 0 forks source link

some encoded HTML entities not displayed properly #1

Open saumier opened 10 months ago

saumier commented 10 months ago

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

nac-cna-dcopeland commented 9 months ago

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 commented 9 months ago

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