title: How can I render xml using Koa.js?
body: <p>It seems like html breaks if I just render xml text using <code>ctx.body</code> 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. </p>
  
  <p>This is my code and how it looks like on browser!</p>
  
  <pre><code>router.get('/:tag', async (ctx, next) =&gt; 
      (ctx.body = await rssGenerator(ctx.params.tag)))
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/NkBvt.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/NkBvt.png" alt="enter image description here"></a></p>