smfoote / tornado

HTML templates with asynchronous rendering, built with JavaScript.
http://smfoote.github.io/tornado/
Apache License 2.0
8 stars 3 forks source link

Elements with Tornado references inside of textarea are breaking #141

Closed smfoote closed 8 years ago

smfoote commented 8 years ago
<textarea>
  <div>{?hello}hello{/hello}{?hello}{.}{/hello}</div>
</textarea>

When an element inside of a textarea contains a Tornado body or reference, the element is stringified before being inserted into the textarea, and the placeholders where the references would be inserted are lost.

smfoote commented 8 years ago

This is probably going to need to be solved in the parser.