aboutsummaryrefslogtreecommitdiff
path: root/node_modules/@concordance/react/lib/escapeText.js
blob: 52447b1b61aebeb3e6088a02b3c4e746aae33be3 (plain)
1
2
3
4
5
6
7
8
9
10
'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