diff --git a/awx/ui/client/src/shared/generator-helpers.js b/awx/ui/client/src/shared/generator-helpers.js index bce7dae9f7..f35eb9d1ff 100644 --- a/awx/ui/client/src/shared/generator-helpers.js +++ b/awx/ui/client/src/shared/generator-helpers.js @@ -22,7 +22,7 @@ angular.module('GeneratorHelpers', [systemStatus.name]) .factory('Attr', function () { return function (obj, key, fld) { var i, s, result, - value = (typeof obj[key] === "string") ? obj[key].replace(/[\'\"]/g, '"') : obj[key]; + value = (typeof obj[key] === "string") ? obj[key].replace(/[\"]/g, '"').replace(/[\']/g, ''') : obj[key]; if (/^ng/.test(key)) { result = 'ng-' + key.replace(/^ng/, '').toLowerCase() + "=\"" + value + "\" ";