mirror of
https://github.com/wavetermdev/xterm.js.git
synced 2026-08-05 13:43:48 -07:00
match capitalization of HTML with the rest of the file
This commit is contained in:
@@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user