Merge pull request #329 from rtfpessoa/fix-escaping-long-lines

fix: Enforce escape for lines that are not highlighted
This commit is contained in:
Rodrigo Fernandes 2020-07-26 14:01:11 +01:00 committed by GitHub
commit 4162188f80
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 311 additions and 2 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -229,11 +229,11 @@ export function diffHighlight(
return {
oldLine: {
prefix: line1.prefix,
content: line1.content,
content: escapeForHtml(line1.content),
},
newLine: {
prefix: line2.prefix,
content: line2.content,
content: escapeForHtml(line2.content),
},
};
}