We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7dcd2d3 commit f0c7042Copy full SHA for f0c7042
1 file changed
src/hook-inline.ts
@@ -5,6 +5,7 @@ import { SandboxOptions } from "./sandpack";
5
6
const escapeHTMLComment = (content: string) => {
7
// It will be restored when parsing comment
8
+ // to avoid break -->
9
return content.replaceAll("<!--", "\\u003c\\u0021\\u002d\\u002d").replaceAll("-->", "\\u002d\\u002d\\u003e");
10
};
11
export const inlineFiles = (content: string, filePath: string) => {
0 commit comments