Remove escaped single quote
This commit is contained in:
parent
a3e149a30e
commit
01e63d5b1a
|
@ -1073,7 +1073,7 @@ function updateLintReport(cm, delay) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
function escapeHtml(html) {
|
function escapeHtml(html) {
|
||||||
const chars = {'&': '&', '<': '<', '>': '>', '"': '"', '\'': ''', '/': '/'};
|
const chars = {'&': '&', '<': '<', '>': '>', '"': '"', "'": ''', '/': '/'};
|
||||||
return html.replace(/[&<>"'/]/g, function(char) { return chars[char]; });
|
return html.replace(/[&<>"'/]/g, function(char) { return chars[char]; });
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user