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

109
Vistas
add line breakers to copybuffer

I can't get how to add line breakers to a copy buffer that then can be pasted in google sheets with breaking lines. I need a HTML (br / p) behavior. When we select text with such line-breakers and past it line-by-line in sheets.

I don't want to create a new window for that:

 let string="";
 document.querySelectorAll('p').forEach(el => {string+= el.innerText + "<br/>"});
 let newWin =  window.open("", "Title");
    newWin.document.body.innerHTML=string;
    newWin.getSelection().selectAllChildren(newWin.document.body);
    newWin.execCommand("copy");
 }
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