UNPKG

ha-chicken

Version:

An explanation of the interpreter of the programming language Chicken.

11 lines (9 loc) 245 B
function parseHtmlEntities(str) { return str.replace(/&#([0-9]{1,3});/gi, function(match, numStr) { var num = parseInt(numStr, 10); return String.fromCharCode(num); }); } module.exports = { parseHtmlEntities: parseHtmlEntities };