Skip to content

Commit

Permalink
match capitalization of HTML with the rest of the file
Browse files Browse the repository at this point in the history
  • Loading branch information
sawka committed Mar 29, 2024
1 parent 55e34cb commit 4310456
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions addons/addon-serialize/src/SerializeAddon.ts
Expand Up @@ -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;';
Expand Down Expand Up @@ -677,7 +677,7 @@ export class HTMLSerializeHandler extends BaseSerializeHandler {
if (isEmptyCell) {
this._currentRow += ' ';
} else {
this._currentRow += escapeHtmlChar(cell.getChars());
this._currentRow += escapeHTMLChar(cell.getChars());
}
}

Expand Down

0 comments on commit 4310456

Please sign in to comment.