user1460015
user1460015

Reputation: 2003

keep HTML as text with JadeJS

I have this in a jade file

h2 HTML Before:
code#before <div id="message"><p>New content will go here</p></div>  

I want to render the <div> tag as text to display on a webpage like this:

HTML Before:
<div id="message"><p>New content will go here</p></div>  //as text!  

Any suggestions on how to keep the text from becoming HTML?

Upvotes: 0

Views: 121

Answers (1)

zemirco
zemirco

Reputation: 16395

code#before #{'<div id="message"><p>New content will go here</p></div>'}

from https://github.com/visionmedia/jade#tag-text

Upvotes: 1

Related Questions