So I'm trying to move some of my data binding to templates to allow conditional formatting, but I've noticed something when binding a notes field directly to a <p> tag vs. rendering it in the Template. The binding adds <br> tags in place of the carriage returns so the notes format correctly; the template does not.
Here's the template:
# if(PeopleNotes != null && PeopleNotes != '' ) { # <div class='inputWrapper' id='main_notes'>
<label for='main_notesInput'>Notes</label>
<p id='NoteField'>#: PeopleNotes #</p>
</div> # } #
Which doesn't include the <br> tag, vs:
<div class="inputWrapper" id="main_notes">
<label for="main_notesInput">Notes</label>
<p id="NoteField" data-bind="text: selectedPerson.PeopleNotes"></p>
</div>
which does. Suggestions?