1
0
mirror of https://github.com/ansible/awx.git synced 2024-11-01 08:21:15 +03:00

Use textContent property instead of innerHTML in sanitize filter

This commit is contained in:
Marliana Lara 2018-06-14 16:07:46 -04:00
parent 1b5ea07745
commit 9a73d9c616
No known key found for this signature in database
GPG Key ID: 38C73B40DFA809EE
2 changed files with 2 additions and 2 deletions

View File

@ -289,7 +289,7 @@ function getProjectDetails () {
const label = strings.get('labels.PROJECT');
const link = `/#/projects/${project.id}`;
const value = $filter('sanitize')(project.name);
const value = project.name;
const tooltip = strings.get('tooltips.PROJECT');
return { label, link, value, tooltip };

View File

@ -6,7 +6,7 @@
export default [function() {
return function(input) {
input = $("<span>").text(input)[0].innerHTML;
input = $("<span>").text(input)[0].textContent;
return input;
};
}];