Skip to content

Commit

Permalink
escape double quote inside abe input
Browse files Browse the repository at this point in the history
  • Loading branch information
wonknu committed Aug 3, 2016
1 parent b2c996d commit ad33836
Show file tree
Hide file tree
Showing 4 changed files with 265 additions and 261 deletions.
2 changes: 2 additions & 0 deletions dist/cli/handlebars/abe/printInput.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ function printInput() {
params.value = '';
}

if (typeof params.value === 'string') params.value = params.value.replace(/\"/g, '"');

var inputClass = 'form-control form-abe';
var commonParams = 'id="' + params.key + '"\n data-id="' + params.key + '"\n value="' + params.value + '"\n maxlength="' + params.maxLength + '"\n reload="' + params.reload + '"\n tabIndex="' + params.order + '"\n data-required="' + params.required + '"\n data-display="' + params.display + '"\n data-visible="' + params.visible + '"\n data-autocomplete="' + params.autocomplete + '"\n placeholder="' + params.placeholder + '"';

Expand Down
Loading

0 comments on commit ad33836

Please sign in to comment.