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'