From 431045619e8f9cf314738e5aeece56d709cfbe30 Mon Sep 17 00:00:00 2001 From: sawka Date: Fri, 29 Mar 2024 10:26:44 -0700 Subject: [PATCH] match capitalization of HTML with the rest of the file --- addons/addon-serialize/src/SerializeAddon.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/addon-serialize/src/SerializeAddon.ts b/addons/addon-serialize/src/SerializeAddon.ts index 0f87885f..cd15cfc3 100644 --- a/addons/addon-serialize/src/SerializeAddon.ts +++ b/addons/addon-serialize/src/SerializeAddon.ts @@ -14,7 +14,7 @@ function constrain(value: number, low: number, high: number): number { return Math.max(low, Math.min(value, high)); } -function escapeHtmlChar(c: string): string { +function escapeHTMLChar(c: string): string { switch (c) { case '&': return '&'; case '<': return '<'; @@ -677,7 +677,7 @@ export class HTMLSerializeHandler extends BaseSerializeHandler { if (isEmptyCell) { this._currentRow += ' '; } else { - this._currentRow += escapeHtmlChar(cell.getChars()); + this._currentRow += escapeHTMLChar(cell.getChars()); } }