You are here

function _fontsquirrel_api_get_sanitized_css_family in @font-your-face 8.3

Returns sanitized css family text.

Parameters

string $css_family: Unsanitized version of css family string.

Return value

string Sanitized css family string.

1 call to _fontsquirrel_api_get_sanitized_css_family()
_fontsquirrel_api_get_font_directory_location in modules/fontsquirrel_api/fontsquirrel_api.module
Returns directory location of font package from Font Squirrel.

File

modules/fontsquirrel_api/fontsquirrel_api.module, line 276
Font Squirrel API module file.

Code

function _fontsquirrel_api_get_sanitized_css_family($css_family) {
  return preg_replace("/[^A-Za-z0-9\\-]/", '', $css_family);
}