wordpress-seo
wordpress-seo copied to clipboard
No anchors in FAQ Schema Block possible
Please give us a description of what happened.
I added a link (anchor element) in the FAQ block element, but the element ends at the point, where the anchor started: Rich Snippet Testing Tool
Please describe what you expected to happen and why.
I expected the a href="" to be escaped and included in the JSON+LD
According to google this is possible:
The answer may contain HTML content such as links and lists. Valid HTML tags include: h1 through h6, br, ol, ul, li, a, p, div, b, strong, i, and em.
How can we reproduce this behavior?
- Add a FAQ Page element with Gutenberg
- Include Text with a link
- Check JSON+LD source or Rich Snippets Testing Tool
Technical info
-
WordPress version: 5.4.1
-
Yoast SEO version: 14.2
-
If relevant, which editor is affected (or editors):
- [ ] Classic Editor
- [x] Gutenberg
- [ ] Classic Editor plugin
- Tested with theme: Twenty Twenty and Neve
Closing as a duplicate of https://github.com/Yoast/wordpress-seo/issues/11317