HotDrink / hotdrink

JavaScript MVVM library with support for multi-way dependencies and generic, rich UI behaviors.
http://hotdrink.github.io/hotdrink/
58 stars 9 forks source link

Displaying newlines with text binder #37

Closed philipvr closed 12 years ago

philipvr commented 12 years ago

The text binder now displays newlines correctly

this.value = hd.variable("Hello,\nthis is a test!");
<span data-bind="text: value"></span>

Now displays:

Hello,
this is a test!