Added a cleaner solution for string replacement woes (ie, use Str.replace() instead of applying replace(/\$/g, "$$$$") to replacement strings)

This commit is contained in:
Jeff Parsons 2017-06-23 11:56:14 -07:00 committed by Jeff Parsons
commit 113201fdb4
19 changed files with 237 additions and 23 deletions

View file

@ -2049,7 +2049,7 @@ HTMLOut.prototype.addFilesToHTML = function(asFiles, sScriptEmbed)
sTextInsert += '\n' + sIndent + sScriptEmbed;
}
if (sTextInsert) {
this.sHTML = this.sHTML.replace(sText, sText + sTextInsert.replace(/\$/g, "$$$$"));
this.sHTML = str.replace(sText, sText + sTextInsert, this.sHTML);
}
}
else {