blob: 52447b1b61aebeb3e6088a02b3c4e746aae33be3 (
plain)
1
2
3
4
5
6
7
8
9
10
|
'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
|