/**
* Begins the display of a new tab content panel.
*
* @param string $selector Identifier of the panel.
* @param string $id The ID of the div element
* @param string $title The title text for the button
*
* @return string HTML to start a new panel
*
* @since 4.0.0
*/
public static function addTab($selector, $id, $title)
{
$active = static::$loaded[__CLASS__ . '::startTabSet'][$selector]['active'] == $id ? ' active' : '';
return '<joomla-tab-element id="' . $id . '"' . $active . ' name="' . htmlspecialchars($title, ENT_COMPAT, 'UTF-8') . '">';
}