Is it possible to use or configure pug to generate raw text instead of html ?
I would like the following code line to generate
Hello John Doe
instead of
<Hello>John Doe</Hello>
render("Hello #{name}", { name: "John Doe" }))
CodePudding user response:
You have to prefix the line with a pipe (|
). See here for more documentation on plain text rendering with Pug.