quoteText static method

String quoteText(
  1. String text
)

Returns Sass source for a quoted string that, when evaluated, will have text as its contents.

Implementation

static String quoteText(String text) {
  var quote = _bestQuote([text]);
  var buffer = StringBuffer();
  buffer.writeCharCode(quote);
  _quoteInnerText(text, quote, buffer, static: true);
  buffer.writeCharCode(quote);
  return buffer.toString();
}