Files

10 lines
239 B
JavaScript
Raw Permalink Normal View History

2020-05-04 18:50:13 +01:00
'use strict'
function escapeText (text) {
return text
.replace(/</g, '&lt;')
.replace(/>/g, '&gt;')
// TODO: Escape characters that Concordance would otherwise replace with \u
// sequences.
}
module.exports = escapeText