Skip to content

Commit

Permalink
Merge pull request #315 from devpaul/xmlEncode-xxs
Browse files Browse the repository at this point in the history
Cleanup improper regex usage
  • Loading branch information
matt-gadd committed Feb 3, 2020
2 parents d6b93d9 + a9c79ce commit abd033a
Show file tree
Hide file tree
Showing 3 changed files with 84 additions and 87 deletions.
2 changes: 1 addition & 1 deletion dtl/dom.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ define([
var replacement = "";
for(var p = 2, pl = pair.length; p < pl; p++){
if(p == 2){
replacement += "<" + tag + ' dtlinstruction="{% ' + token[k].replace('"', '\\"') + ' %}">';
replacement += "<" + tag + ' dtlinstruction="{% ' + token[k].replace(/"/g, '\\"') + ' %}">';
}else if(tag == pair[p]) {
continue;
}else{
Expand Down
Loading

0 comments on commit abd033a

Please sign in to comment.