Back to Microdata class

Method sanitizeType

public static string
sanitizeType
(mixed $type)
Return the sanitized $Type
Parameters
  • string $type The Type to sanitize
Returns
  • string
Since
  • 3.2
Class: Microdata
Project: Joomla

Method sanitizeType - Source code

/**
 * Return the sanitized $Type
 *
 * @param   string  $type  The Type to sanitize
 *
 * @return  string
 *
 * @since   3.2
 */
public static function sanitizeType($type)
{
    return ucfirst(trim($type));
}