Back to Microdata class

Method htmlScope

public static string
htmlScope
(mixed $scope)
Return the HTML Scope
Parameters
  • string $scope The Scope to process
Returns
  • string
Since
  • 3.2
Class: Microdata
Project: Joomla

Method htmlScope - Source code

/**
 * Return the HTML Scope
 *
 * @param   string  $scope  The Scope to process
 *
 * @return  string
 *
 * @since   3.2
 */
public static function htmlScope($scope)
{
    return "itemscope itemtype='https://schema.org/" . static::sanitizeType($scope) . "'";
}