wordpress-seo icon indicating copy to clipboard operation
wordpress-seo copied to clipboard

No anchors in FAQ Schema Block possible

Open kaispriestersbach opened this issue 6 years ago • 1 comments

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?

  1. Add a FAQ Page element with Gutenberg
  2. Include Text with a link
  3. 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

kaispriestersbach avatar Jun 07 '20 16:06 kaispriestersbach

Closing as a duplicate of https://github.com/Yoast/wordpress-seo/issues/11317

Djennez avatar Jun 08 '20 07:06 Djennez