Problem/Motivation
The link text that is used to generate strucuted data can be a render array with a #markup tag. In such case, if a link text contains " character it can end up as such in the markup.
In the best case, this causes validation errors in the Structured Data Testing Tool.
Proposed resolution
Alter breadcrumb.html.twig so it escapes JS characters before printing the output.
Remaining tasks
User interface changes
API changes
Data model changes
Release notes snippet
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | 3053461-structured-data-2.patch | 654 bytes | mbovan |
Comments
Comment #2
mbovan commentedThis fixes the problem for us.
Comment #3
pivica commentedThis looks a bit crazy that we need to do all that, but it makes sense.
Comment #4
pivica commentedComment #6
pivica commentedCommitted.