protected function isMathML($html) { foreach ($this->MathMLTags as $tag) { if (false !== stripos($html, "<{$tag}>")) { return true; } } return false; }