Skip to content

Commit 28ecf78

Browse files
committed
fix: ignore special chars in data
1 parent cef4045 commit 28ecf78

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/template.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,6 @@ export function fillTemplate(data: any, opts?: IMarkmapCreateOptions): string {
4848
];
4949
const html = template
5050
.replace('<!--CSS-->', '')
51-
.replace('<!--JS-->', jsList.join(''));
51+
.replace('<!--JS-->', () => jsList.join(''));
5252
return html;
5353
}

0 commit comments

Comments
 (0)