Title: FAQ Schema includes HTML code
Last modified: October 12, 2021

---

# FAQ Schema includes HTML code

 *  Resolved [winex](https://wordpress.org/support/users/winex/)
 * (@winex)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/faq-schema-includes-html-code/)
 * Using shortcode in classic editor:
    [lightweight-accordion title=”Question” title_tag
   =”h3″ schema=”faq”]Answer[/lightweight-accordion]
 * It does work well, but it adds <p> for some reason in answer part – [https://prnt.sc/1vwdhbk](https://prnt.sc/1vwdhbk)
    -  This topic was modified 4 years, 7 months ago by [winex](https://wordpress.org/support/users/winex/).

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [Andy Feliciotti](https://wordpress.org/support/users/someguy9/)
 * (@someguy9)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/faq-schema-includes-html-code/#post-14964452)
 * Thanks [@winex](https://wordpress.org/support/users/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](https://wordpress.org/support/users/winex/)
 * (@winex)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/faq-schema-includes-html-code/#post-14964454)
 * 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](https://wordpress.org/support/users/winex/).
 *  Plugin Author [Andy Feliciotti](https://wordpress.org/support/users/someguy9/)
 * (@someguy9)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/faq-schema-includes-html-code/#post-15365248)
 * Hey [@winex](https://wordpress.org/support/users/winex/), checking in on this
   again, I see Google’s page about FAQ schema ( [https://developers.google.com/search/docs/advanced/structured-data/faqpage](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.
    -  This reply was modified 4 years, 3 months ago by [Andy Feliciotti](https://wordpress.org/support/users/someguy9/).

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘FAQ Schema includes HTML code’ is closed to new replies.

 * ![](https://ps.w.org/lightweight-accordion/assets/icon-256x256.png?rev=2478614)
 * [Lightweight Accordion](https://wordpress.org/plugins/lightweight-accordion/)
 * [Support Threads](https://wordpress.org/support/plugin/lightweight-accordion/)
 * [Active Topics](https://wordpress.org/support/plugin/lightweight-accordion/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/lightweight-accordion/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/lightweight-accordion/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Andy Feliciotti](https://wordpress.org/support/users/someguy9/)
 * Last activity: [4 years, 3 months ago](https://wordpress.org/support/topic/faq-schema-includes-html-code/#post-15365248)
 * Status: resolved