31 public function isValid():
bool 33 if (!preg_match(
'/<[^>]+?>/', $this->text)) {
39 if (!$dom->loadHTML($this->text)) {
45 RecursiveIteratorIterator::SELF_FIRST
47 foreach ($iter as $element) {
49 if (in_array(strtolower($element->nodeName), [
'body'])) {
53 if ($element->nodeType === XML_ELEMENT_NODE) {
__construct(string $text)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Class ilHtmlDomNodeIterator.