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

163
Vistas
How can I store a block of text with links in my DB?

I have a textarea (as a description), I want to store the HTML code of the textarea in my db and I can convert the text to HTML with the "br" and "a" tags, the only ones I need. My problem is with the links that have &.

With JS, I tried to use btoa() method to encode the string, store it in my DB and decode with atob() when I want to show it but it gives me this error: Uncaught DOMException: Failed to execute 'atob' on 'Window': The string to be decoded is not correctly encoded.

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

I resolved the problem with a string replace before inserting it in the table, and where I want to show, replace it again by &.

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