Problem/Motivation

When a label value is returned from a remote endpoint that includes, for example, a single quote / apostrophe, the rendered label shows an HTML escape character sequence instead.

Steps to reproduce

Add a field using the LCSH Subject Headings endpoint to a node type.

Add a node and in the field you just created, start typing a subject that contains an apostrophe.

Example "Little Draggin' (Bear)"

Select the entry in the select list and save the node.

Proposed resolution

Determine the correct way to ensure the returned string is sanitized so the text may be rendered correctly.

Remaining tasks

Comments

alxp created an issue. See original summary.

  • 764afb6 committed on 1.x
    #3208037 by alxp. Apostrophes and other characters appear as HTML...
whikloj’s picture

StatusFileSize
new13.55 KB

I am not seeing this behaviour with Drupal 10.
screenshot of rendered subject heading with single quote displayed correctly.

alxp’s picture

Also just confirmed that this does not occur anymore, thanks for letting me know!

alxp’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.