code: function escapeCodeAsRegExpForMatchingInsideHTML(body) {
          return escapeRegExp(body).replace('<', '(?:<|&lt;)').replace('>', '(?:>|&gt;)').replace('&', '(?:&|&amp;)').replace('"', '(?:"|&quot;)').replace(/\s+/g, '\\s+');
      }
docs: Escapes special characters in a string to be used inside a regular
  expression as a string literal. Also ensures that HTML entities will
  be matched the same as their literal friends.
  @param {string} body The string.
  @return {string} The escaped string.