{"size": 171, "ext": "js", "max_stars_repo_path": "lib/utils/escapeHTML.js", "max_stars_repo_name": "redom/nodom", "max_stars_repo_stars_event_min_datetime": "2017-07-17T08:29:35.000Z", "max_stars_repo_stars_event_max_datetime": "2022-01-24T04:36:26.000Z", "max_issues_repo_path": "lib/utils/escapeHTML.js", "max_issues_repo_name": "redom/nodom", "max_issues_repo_issues_event_min_datetime": "2017-09-29T07:26:03.000Z", "max_issues_repo_issues_event_max_datetime": "2021-07-30T13:24:55.000Z", "max_forks_repo_path": "lib/utils/escapeHTML.js", "max_forks_repo_name": "redom/nodom", "max_forks_repo_forks_event_min_datetime": "2017-09-11T13:56:45.000Z", "max_forks_repo_forks_event_max_datetime": "2020-09-22T20:03:46.000Z"}
{"max_stars_count": 116, "max_issues_count": 202, "max_forks_count": 12, "avg_line_length": 17.1, "max_line_length": 61, "alphanum_fraction": 0.4795321637}
const htmlEntities = {
  '&': '&amp;',
  '<': '&lt;',
  '>': '&gt;'
};

export function escapeHTML (str) {
  return (str || '').replace(/[&<>]/g, c => htmlEntities[c]);
}
