mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -04:00
Change sequence of Mathjax escaping (#1854)
This commit is contained in:
parent
6043d2f5a2
commit
89530c5f24
1 changed files with 1 additions and 1 deletions
|
@ -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, ">").replace(/&/g, "&");
|
||||
return value.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">");
|
||||
}
|
||||
|
||||
export function unescapeSomeEntities(value: string): string {
|
||||
|
|
Loading…
Reference in a new issue