class Sanitize::CSS

def stylesheet(css)

Returns:
  • (String) - Sanitized CSS stylesheet.
def stylesheet(css)
  tree = Crass.parse(css,
    preserve_comments: @config[:allow_comments],
    preserve_hacks: @config[:allow_hacks])
  tree!(tree)
  Crass::Parser.stringify(tree)
end