Thanks @winex taking a look, I believe it’s filtered to add P tags automatically and should be fine to be included in the markup. I’ll take a deeper look and see if I can add a hook to remove that functionality though.
Thread Starter
winex
(@winex)
I’ve checked meanwhile with people heavily involved in SEO, and all of them agree that <p> should not be in the schema. However they do use <a> and <strong> tags in FAQ schemas – so I don’t have specifics on what’s correct – only what’s the best practice.
Thanks for looking into it more, it does the work for me as it is, in general.
-
This reply was modified 4 years, 7 months ago by
winex.
Hey @winex, checking in on this again, I see Google’s page about FAQ schema ( https://developers.google.com/search/docs/advanced/structured-data/faqpage ) says this:
The full answer to the question. The answer may contain HTML content such as links and lists. Google Search displays the following HTML tags; all other tags are ignored: <h1> through <h6>, <br>, <ol>, <ul>, <li>, <a>, <p>, <div>, <b>, <strong>, <i>, and <em>.
Seems like <p> is allowed so I am going to keep it outputting the way it is, since all other tags are ignored I am guessing anything should be safe in there in general.