Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Long block of text in Jade textarea?

I'm using Jade in my latest node.js app. I'd like to have a long block of text in a textarea by default.

If I do something like this:

textarea(id="theTextarea")

it renders just fine:

<textarea id="theTextarea"></textarea>

However, if I do something like so:

textarea(id="theTextarea")
  Hello world.

I get this:

<textarea id="theTextarea">
  <hello>world</hello>
</textarea>

But I'd like it to be like so:

<textarea id="theTextarea">
  hello, world
</textarea>

Any ideas?

like image 725
Connor Avatar asked May 18 '12 21:05

Connor


1 Answers

textarea(id="theTextarea")
  | Hello 
  | world.
  | Hello
  | moon.
  | Hello
  | sun.
like image 167
Pickels Avatar answered Oct 20 '22 02:10

Pickels