From ce14180856368d04542be8935e52c357e88afb63 Mon Sep 17 00:00:00 2001 From: Jackens Date: Tue, 11 Feb 2020 09:57:42 +0100 Subject: [PATCH] escapeHtml bug fix --- packages/shiki/src/renderer.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/shiki/src/renderer.ts b/packages/shiki/src/renderer.ts index bc6a948d8..48fc37874 100644 --- a/packages/shiki/src/renderer.ts +++ b/packages/shiki/src/renderer.ts @@ -33,5 +33,5 @@ export function renderToHtml(lines: IThemedToken[][], options: HtmlRendererOptio } function escapeHtml(html: string) { - return html.replace(//g, '>') + return html.replace(/&/g, '&').replace(//g, '>') } \ No newline at end of file