* @package Combodo\iTop\Application\UI\Component\Html * @since 2.8.0 */ class Html extends UIBlock { // Overloaded constants const BLOCK_CODE = 'ibo-html'; const HTML_TEMPLATE_REL_PATH = 'components/html/layout'; /** @var string $sHtml The raw HTML, must be already sanitized */ protected $sHtml; /** * Html constructor. * * @param string $sHtml * @param string|null $sId */ public function __construct($sHtml = '', $sId = null) { $this->sHtml = $sHtml; parent::__construct($sId); } /** * Return the raw HTML, should have been sanitized * * @return string */ public function GetHtml() { return $this->sHtml; } /** * Set the raw HTML, must be already sanitized * * @param string $sHtml * * @return $this */ public function SetHtml($sHtml) { $this->sHtml = $sHtml; return $this; } }