theironcook/Backbone.ModelBinder — pull request #108 by jackquack (2013-01-12 23:37:35+00:00)
Title: HTML inside contentEditable and null/undefined model attributes

Fix: In some cases, the value of a model attribute will be Null or Undefined. In these cases, the word 'null' or 'undefined' will show up on the page.
This fix just checks to make sure the value is present before inserting it in to the page.

Fix: In some cases, a bit of HTML will be inside an element that is contentEditable. For instance, an
. In this case, calling el.html() will return '
'. This will result in '
' being set as the value of the model attribute. Instead, just use el.text() which will not include any HTML from the element.