mirror of
https://github.com/github/codeql-action.git
synced 2025-12-26 09:10:07 +08:00
11 lines
239 B
JavaScript
11 lines
239 B
JavaScript
'use strict'
|
|
|
|
function escapeText (text) {
|
|
return text
|
|
.replace(/</g, '<')
|
|
.replace(/>/g, '>')
|
|
// TODO: Escape characters that Concordance would otherwise replace with \u
|
|
// sequences.
|
|
}
|
|
module.exports = escapeText
|