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
Issue fork jsonld_generator-3639186
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
Comment #3
shank115 commentedDisclosure: AI was used to find the cause and draft the fix. I reviewed and tested the fix myself.
Comment #5
chaitanyadessai commentedMerged and released thanks @shank115