'how to render stored html from mongodb with ejs?

i am making a blog using Express with EJS to render the response from a database "mongodb" i stored html tags like <ul> <ol> <b> in mongodb and render it using ejs ,like this <%- blog.paragraph %> but it doesn't render the html as i want , i got like normal string ,like if it's inside <pre> like it shown in the image but when i use it directly like this <%- '<a style="color:red;" href="/">hello</a>'%> it works fine how can i render stored html with ejs correctly ?

screenshot of the html inspector

screenshot of the web page



Solution 1:[1]

i was using xss middleware thats the reason why i was getting my html escaped like it shown in the image in the image i thought the problem is in ejs

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Oussama Soffih