purescript/trypurescript

Why is this pure function foreign?

ursi opened this issue · 0 comments

ursi commented

exports.encode = function(text) {
return text
.replace('<', '&lt;')
.replace('>', '&gt;')
.replace('&', '&amp;')
.replace('"', '&quot;');
};