D
D
Dmitry Kashkovsky2015-10-08 19:44:36
Pug
Dmitry Kashkovsky, 2015-10-08 19:44:36

How to insert html text into jade template?

There is:
express.js and a template on jade
mongoose with mongodb from which I get data and transfer it to the template
, from the base I get the markdown file
in the view, convert it to html
and transfer it to jade
so that it is displayed correctly and special characters are not replaced using this code:

:verbatim
            !{ post.text }

it seems to work, but I don’t really like the approach
how to do it better?
thank!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Kashkovsky, 2015-10-08
@Zverushko

google knows =)
stackoverflow.com/questions/11191421/rendering-htm...
!=post.text

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question