mirror of
https://github.com/ansible/awx.git
synced 2024-10-31 23:51:09 +03:00
Merge pull request #3229 from mabashian/popover-quote-entity
Replace single quote with appropriate entity when generating new attribute Reviewed-by: https://github.com/softwarefactory-project-zuul[bot]
This commit is contained in:
commit
456ef49ee3
@ -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 + "\" ";
|
||||
|
Loading…
Reference in New Issue
Block a user