Back to Microdata class

Method htmlSpan

public static string
htmlSpan
(mixed $content, mixed $property = '', mixed $scope = '', mixed $invert = false)
Return Microdata semantics in a `<span>` tag.
Parameters
  • string $content The human content
  • string $property Optional, the human content to display
  • string $scope Optional, the Type scope to display
  • bool $invert Optional, default = false, invert the $scope with the $property
Returns
  • string
Since
  • 3.2
Class: Microdata
Project: Joomla

Method htmlSpan - Source code

/**
 * Return Microdata semantics in a `<span>` tag.
 *
 * @param   string   $content   The human content
 * @param   string   $property  Optional, the human content to display
 * @param   string   $scope     Optional, the Type scope to display
 * @param   boolean  $invert    Optional, default = false, invert the $scope with the $property
 *
 * @return  string
 *
 * @since   3.2
 */
public static function htmlSpan($content, $property = '', $scope = '', $invert = false)
{
    return static::htmlTag('span', $content, $property, $scope, $invert);
}