Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

238
Visualizações
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 à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda