fix: Enforce escape for lines that are not highlighted

This commit is contained in:
Rodrigo Fernandes 2020-07-26 13:53:06 +01:00
parent c7c56bca03
commit a61c7cfd43
No known key found for this signature in database
GPG key ID: 67157D2E3D4258B4
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),
},
};
}