function encode_char(c) {
  return _ENCODE_HTML_RULES[c] || c;
}
Escape characters reserved in regular expressions.

If `string` is `undefined` or `null`, the empty string is returned.

@param {String} string Input string
@return {String} Escaped string
@static
@private