diff --git a/src/ng/directive/input.js b/src/ng/directive/input.js
index a5fc56c8..5fb0fb14 100644
--- a/src/ng/directive/input.js
+++ b/src/ng/directive/input.js
@@ -887,7 +887,13 @@ var VALID_CLASS = 'ng-valid',
// Write data to the model
function read() {
- ngModel.$setViewValue(element.html());
+ var html = element.html();
+ // When we clear the content editable the browser leaves a
behind
+ // If strip-br attribute is provided then we strip this out
+ if( attrs.stripBr && html == '
' ) {
+ html = '';
+ }
+ ngModel.$setViewValue(html);
}
}
};
@@ -897,6 +903,7 @@ var VALID_CLASS = 'ng-valid',