From 89530c5f24a8177de53123805dd2664e1ceae443 Mon Sep 17 00:00:00 2001 From: Henrik Giesel Date: Tue, 10 May 2022 03:54:06 +0200 Subject: [PATCH] Change sequence of Mathjax escaping (#1854) --- ts/editable/mathjax.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ts/editable/mathjax.ts b/ts/editable/mathjax.ts index 1c340d138..bbc4b8006 100644 --- a/ts/editable/mathjax.ts +++ b/ts/editable/mathjax.ts @@ -70,7 +70,7 @@ export function convertMathjax( * Escape characters which are technically legal in Mathjax, but confuse HTML. */ export function escapeSomeEntities(value: string): string { - return value.replace(//g, ">").replace(/&/g, "&"); + return value.replace(/&/g, "&").replace(//g, ">"); } export function unescapeSomeEntities(value: string): string {