0

It seems like html breaks if I just render xml text using ctx.body because everything goes into body element not as raw xml. I read all the documentation but couldn't find proper response function for rendering xml.

This is my code and how it looks like on browser!

router.get('/:tag', async (ctx, next) => 
    (ctx.body = await rssGenerator(ctx.params.tag)))

enter image description here

Phillip YS
  • 784
  • 3
  • 10
  • 33

0 Answers0