Skip to content

Fix double-escape in handling of ANSI output - #60

Open
jonatanschroeder wants to merge 1 commit into
jsvine:masterfrom
jonatanschroeder:avoid-double-escape
Open

Fix double-escape in handling of ANSI output#60
jonatanschroeder wants to merge 1 commit into
jsvine:masterfrom
jonatanschroeder:avoid-double-escape

Conversation

@jonatanschroeder

Copy link
Copy Markdown

Resolves #59. When ansi_up is used, it already escapes the output text, so the extra call to escapeHTML is not needed in that context. This change ensures that escapeHTML is only used in potentially ansi output if ansi_up is not being used.

It also extends the escapeHTML to properly handle other escapable characters in HTML, particularly &.

@jonatanschroeder

Copy link
Copy Markdown
Author

@jsvine is there anything I can do to progress with this fix?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Double-escape HTML when ansi is used

1 participant