function removeQuotes(value) {
  if (typeof value !== 'string') {
    return value;
  }

  const quotes = ['"', '\''];
  const rootQuote = quotes.indexOf(value[0]);
  const hasRootQuote = rootQuote !== -1;
  const trailingQuote = hasRootQuote && quotes.indexOf(value[value.length - 1]);

  if (rootQuote !== -1 && trailingQuote === rootQuote) {
    return value.slice(1, value.length - 1);
  }

  return value;
}
Removes "", '', or `` wrapping quotes from attributes when they are
parsed directly from the markup.

@param {string} value
@return {string}