unquote($string)

Removes quotes from a string if the string is quoted, or returns the same string if it’s not.

Get Pragmatic Guide to Sass now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.