Skip to content

Commit

Permalink
fixed html replace
Browse files Browse the repository at this point in the history
  • Loading branch information
LostRuins committed May 24, 2024
1 parent dd558d8 commit 318d5b8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion klite.embd
Original file line number Diff line number Diff line change
Expand Up @@ -14545,7 +14545,10 @@ Current version: 141
return replacedText;
});
}
internalHTMLparts.forEach((part, index) => { newbodystr = newbodystr.replace(`<internal_html_${index}>`, part); }); // Bring back the embedded HTML parts.
newbodystr = newbodystr.replace(/<internal_html_(.*?)>/gm, (match, p) => {
return internalHTMLparts[p];
});

for(let i=0;i<codestashes.length;++i)
{
newbodystr = newbodystr.replace(`%CodeStash${i}%`,codestashes[i]);
Expand Down

0 comments on commit 318d5b8

Please sign in to comment.