added fix to escape switch (#23416)

This commit is contained in:
Alex Ma
2023-06-19 14:16:08 -07:00
committed by GitHub
parent aaf74e6fcf
commit 97bb8ae2a4

View File

@@ -14,7 +14,7 @@ export function escape(html: string): string {
case '>': return '>';
case '&': return '&';
case '"': return '"';
case '\'': return '&#39';
case '\'': return ''';
default: return match;
}
});