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

237
Vistas
Change how EJS renders xml templates?

I'm trying to use EJS templates to store xml code. I'm using this xml code strings to pass into an SDK that converts the xml code to an image. However, the issue I'm having is that EJS adds line notation into the templates, which the sdk doesn't supports. For example: Working, hard-coded xml string: "<?xml version=\"1.0\" encoding=\"utf-8\"?> <DieCutLabel Version=\"8.0\" Units=\"twips\">..."

XML string rendered from EJS template: "\n<?xml version=\"1.0\" encoding=\"utf-8\"?>\\n <DieCutLabel Version=\"8.0\" Units=\"twips\">\\n"

EJS is adding in \n symbols, which the SDK does not support. Is there any easy solution to this?

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