ensures multiple commas in tags still work.

This commit is contained in:
Shannon
2014-05-14 20:54:01 +10:00
parent 0bcaa0da7f
commit 157428dbc8

View File

@@ -20,7 +20,7 @@ angular.module("umbraco")
if (tagToAdd.length > 0) {
if ($scope.currentTags.indexOf(tagToAdd) < 0) {
//we need to html encode any tag containing commas: http://issues.umbraco.org/issue/U4-4741
tagToAdd = tagToAdd.replace(",", "&#44;");
tagToAdd = tagToAdd.replace(/\,/g, "&#44;");
$scope.currentTags.push(tagToAdd);
}
}