public static function is(string $text) : bool { return (bool) preg_match('~<[a-z][a-z0-9]*(\\s[^<]*)?>~i', $text); }
/** * Returns if the contents is in HTML format. * * @return boolean */ public function isHtml() : bool { return \Jyxo\Html::is($this->main); }