Long block of text in Jade textarea?
javascript, node.js, pug, template-engine
Solution
textarea(id="theTextarea")
| Hello
| world.
| Hello
| moon.
| Hello
| sun.
Problem
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?