match capitalization of HTML with the rest of the file

This commit is contained in:
sawka
2024-03-29 10:26:44 -07:00
parent 55e34cb174
commit 431045619e
+2 -2
View File
@@ -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 '&lt;';
@@ -677,7 +677,7 @@ export class HTMLSerializeHandler extends BaseSerializeHandler {
if (isEmptyCell) {
this._currentRow += ' ';
} else {
this._currentRow += escapeHtmlChar(cell.getChars());
this._currentRow += escapeHTMLChar(cell.getChars());
}
}