Problem/Motivation

Any "&" in the generated JSON-LD comes out as amp;. This happens for the title, body and anything added in the custom JSON-LD field.

Steps to reproduce

  • Install the module and enable for article.
  • Create an article:
    • Title: Fish & Chips
    • Body: Salt & vinegar, it's "great"
    • Custom JSON-LD: {"keywords": ["R&D"]}
  • Save it and view the page source.

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

CommentFileSizeAuthor
image.png10.78 KBshank115
Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

shank115 created an issue. See original summary.

shank115’s picture

Status: Active » Needs review

Disclosure: AI was used to find the cause and draft the fix. I reviewed and tested the fix myself.

  • shank115 committed 8d1fae71 on 1.0.x
    Issue #3639186: "&" shows up as "&" in the JSON-LD output
    
chaitanyadessai’s picture

Status: Needs review » Fixed

Merged and released thanks @shank115

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

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