I need to sanitize special characters in options, but it doesn't work
correctly. Maybe anybody can tell me how i should do it correctly?
For example:
HTML:
<div ng-controller="Ctrl">
<select id="limitType" name="limit" ng-model="selectedLimit"
ng-options="limit.text for limit in limits" ng-init="selectedLimit='5'"
ng-bind-html="limit.text"></select><div>
JS:
var app = angular.module('app', ['ngSanitize']);
function Ctrl($scope) {
$scope.limits = [{
text: 'Afficher ™ par page'
}, {
text: 'Afficher 10 par page'
}, {
text: 'Afficher 15 par page'
}, {
text: 'Afficher 20 par page'
}]; }
Here is link on fiddle: http://jsfiddle.net/rfTV2/3/
--
You received this message because you are subscribed to the Google Groups
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/groups/opt_out.