Search code examples
htmlnode.jstumblrpug

Converting HTML to Jade


I'm writing a Node.js application (using Jade and Express) that fetches posts from a Tumblr blog and displays them. Unfortunately, Tumblr sends my site a block of raw HTML, which shows up as such on the main page (which is where it should be, only it's still a block of raw HTML).

How would I go about converting this block of raw HTML into what I need?


Solution

  • You need to use !{} to display it as HTML

    .content !{post.content}