Skip to content

Commit

Permalink
update index
Browse files Browse the repository at this point in the history
  • Loading branch information
ylebre committed Oct 1, 2024
1 parent a5d3edd commit 1d5e9e7
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions www/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3970,12 +3970,14 @@ <h1>App preview</h1>
"footHtml": editor.transformers.simplyPreviewFootHtml.render(data.footHtml ?? []),
"bodyHtml" : editor.transformers.simplyPreviewBodyHtml.render(data.bodyHtml ?? [])
};

Object.keys(replacements).forEach(function(replacement) {
matches = fullApp.match("(\\s+){{" + replacement + "}}");
fullApp = fullApp.replace("{{" + replacement + "}}", replacements[replacement].replace(/\n/g, matches[1]));
if (matches) {
fullApp = fullApp.replace("{{" + replacement + "}}", replacements[replacement].replace(/\n/g, matches[1]));
}
});

// escape html
var dataDiv = document.createElement("div");
dataDiv.appendChild(document.createTextNode(fullApp));
Expand Down

0 comments on commit 1d5e9e7

Please sign in to comment.