public static function SassScriptFunctions::unquote in Sassy 7.3
Same name and namespace in other branches
- 7 phamlp/sass/script/SassScriptFunctions.php \SassScriptFunctions::unquote()
Removes quotes from a string if the string is quoted, or returns the same string if it's not.
Parameters
string String to unquote:
Return value
new SassString Unuoted string
Throws
SassScriptFunctionException If $string is not a string
See also
quote
File
- phpsass/
script/ SassScriptFunctions.php, line 716
Class
- SassScriptFunctions
- SassScript functions class. A collection of functions for use in SassSCript. @package PHamlP @subpackage Sass.script
Code
public static function unquote($string) {
SassLiteral::assertType($string, 'SassString');
return new SassString($string->value);
}