Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

144
Vistas
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 Respuestas
Responde la pregunta

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 Denunciar

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 Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda