Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

151
Visualizações
JSON-LD FAQ schema list in nextJS

I'm trying to use the google schema FAQ in the JSON-LD format with nextJs for the seo of a blog.

It's working, I just have one concern.

For a response I have a list. And I need to go back at the lign. I tried using br tags , but it's showing in the html br and the answer as plain text.

How can I make so the br is taken as a tag

Below my code :

export default function Test() {

    let {t, lang} = useTranslationMe('blog')
    const router = useRouter();

    const schemaData = {
        "@context": "https://schema.org",
        "@type": "FAQPage",
        "mainEntity": [{
            "@type": "Question",
            "name": t('title-9'),
            "acceptedAnswer": {
                "@type": "Answer",
                "text": t('text-129')
            }
        }, {
            "@type": "Question",
            "name": t('title-10'),
            "acceptedAnswer": {
                "@type": "Answer",
                "text": `${t('text-130')}<br> ${t('text-131')}<br> ${t('text-131')} <br> ${t('text-132')} <br> ${t('text-133')}`
            }
        }, {
            "@type": "Question",
            "name": t('title-11'),
            "acceptedAnswer": {
                "@type": "Answer",
                "text": t('text-134')
            }
        }]
    }

    
return (
<>
 <script type="application/ld+json" >
     {JSON.stringify(schemaData)}
 </script>
 <div>
   <div className="schema-faq-section">
    {schemaData.mainEntity[0].name}
    <p>{schemaData.mainEntity[0].acceptedAnswer.text}</p>
   </div>
   <div className="schema-faq-section">
    {schemaData.mainEntity[1].name}
   <p>{schemaData.mainEntity[1].acceptedAnswer.text}</p>
   </div>
 </div>
</>
)

Thank you for your help and explanation.

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda