Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

171
Views
Obtenga contenido codificado del objeto javascript y muéstrelo en pug, ¿cómo?

Obtuve un XML que contenía la etiqueta <content:encoded> que procesé en este formulario. Hay varias etiquetas y actualmente tengo problemas con esta etiqueta en particular. Ejemplo :

 { title: [ 'the title goes here' ], link: [ 'https://anotherlink.com' ], description: [ '<img src="https://something.com/foo.jpg"/>Some words here' ], 'content:encoded': [ 'This content is what I want to get, also with escaped characters included' ], guid: [ 'https://something.com' ] }

mi página pug:

 extends mp block layout-content div.View h1.Banner Hello! data_in ul each element in data_in li div.Message div.Title h1= element.title >this gets expected output h3= element.content|encoded >this gets wrong output

¿Cómo obtengo ese contenido codificado, mientras que con el mismo código me va bien cuando obtengo el atributo 'título'? ¿Tengo que hacer otra iteración? Gracias

* editar: quiero decir, valor de 'título'

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!