Escaping & > characters in ng-bind in AngularJs
问题 I have a use case, where we can have '&' and '>' characters in a string. eg. Johnson & Johnson, value > 3 . So while the response from server is encoded, hence the value becomes 'value &gt; 3'. ng-bind doesn't support the following: value > 3 will be rendered for ngBind , whereas the browser renders the same content as value > 3 . http://jsfiddle.net/HKahG/2/ Ng:bind <div ng-bind="model"></div> Ng:bind-html <div ng-bind-html="model"></div> <div> From Div: value > </div> Why is this default