function printStringLiteral(path, options) {
  const {
    node: { value },
  } = path;

  const quote = getPreferredQuote(
    value,
    needsOppositeQuote(path) ? !options.singleQuote : options.singleQuote,
  );

  return [quote, value.replaceAll(quote, `\\${quote}`), quote];
}
Prints a string literal with the correct surrounding quotes based on
`options.singleQuote` and the number of escaped quotes contained in
the string literal. This function is the glimmer equivalent of `printString`
in `common/util`, but has differences because of the way escaped characters
are treated in hbs string literals.