I have this piece of code in one of my .jade
files:
each item in items
li= item.name + " " + item.inStock + " <a href='/item/"+item.uniqueId+"'>buy now!</a>"
What this renders is:
Of Mice and Men 1000 <a href='/item/1'>buy now!</a>
[...]
As you can see the <a href='/item/1'>buy now!</a>
is not rendered as HTML but as plain text. Is there a way to render it as HTML, so that it creates a link?
Thanks!
each item in items
li
| #{item.name} #{item.inStock}
a(href="/item/"+item.uniqueId) buy now!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With