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

138
Vistas
Show html tag using javascript

I have the code in html and ts file. Content in variable Description is <div>aaaa</div><div>bbbb</div><div>cccc</div>

Now the result show

aaaabbbbcccc

How to make it show in 3 line

aaaa 
bbbb 
cccc

OR show with space

aaaa bbbb cccc

html file code

<span>
 {{getHtml(Description)}}
</span>

ts file code

getHtml(html) {
  var div = document.createElement("div");
  div.innerHTML = html;
  return div.innerHTML
}
about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

Try to use the element pre:

<pre>
   {{YOUR_VALUE}}
</pre>
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