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:
parent
9ad03d66b3
commit
113201fdb4
19 changed files with 237 additions and 23 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in a new issue