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

142
Visualizações
Tags showing when i use TinyMCE to post new Paragraph

i'm using TinyMCE to post new Paragraph to the website

and after posting its showing the Paragraph like this:

<p>Some text</p>

so its posting the tags as well

how to solve this problem?

-This is how i'm printing the paragraph:

<p> {{$data->subtitle}} </p>
about 4 years ago · Juan Pablo Isaza
2 Respostas
Responde à pergunta

0

Based on your code you are not just using regular old PHP, but rather something like a Larvel Blade template.

Often templating systems don't allow you to output HTML like that directly due to security reasons (they are trying to prevent injection attacks, you should be aware of them!!).

If it is indeed Blade, try doing

{!! $data->subtitle !!}
  • Reference: https://laravel.com/docs/8.x/blade#displaying-unescaped-data
  • Also read: https://laravel.com/docs/8.x/blade#displaying-data
about 4 years ago · Juan Pablo Isaza Relatório

0

I was able to solve this problem by decode the string:

<?php
  $str = $data->subtitle;
  echo html_entity_decode($str);
?>
about 4 years ago · Juan Pablo Isaza Relatório
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