module Sass::SCSS::RX

def self.escape_char(c)

Other tags:
    Private: -

Returns:
  • (String) - The escaped character

Parameters:
  • c (String) -- The character to escape. Should have length 1
def self.escape_char(c)
  return "\\%06x" % Sass::Util.ord(c) unless c =~ /[ -\/:-~]/
  return "\\#{c}"
end