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

206
Vistas
Get the value of a specific tag inside a string in nodejs

I have a string variable which consists of a bunch of <p> tags as below:

<p style="text-align: center; margin: 20px">Silver Blaze</p> <p style="text-align: center; margin: 20px"> I am afraid, Watson, that I shall have to go,” said Holmes, as we
<p style="text-align: center; margin: 20px">The Naval Treaty</p> <p style="text-align: center; margin: 20px"> The July which immediately succeeded my marriage was made

I want the value of the first <p> tag in this string (Sliver Blaze in this case). I tried split with the p tag but didn't work out.

about 4 years ago · Juan Pablo Isaza
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