code: function HTMLEscape(original) {
    return original.replace(/&/g, '&amp;')
                   .replace(/</g, '&lt;')
                   .replace(/>/g, '&gt;')
                   .replace(/"/g, '&quot;')
                   .replace(/'/g, '&#39;');
  }
docs: Replaces '&', '<', '>', '"', and ''' characters with their HTML encoding.
  @param {string} original The original string.
  @return {string} The string with all the characters mentioned above replaced.