isMathMLElement example

/** * Is an element name valid in an html5 document. * This includes html5 elements along with other allowed embedded content * such as svg and mathml. * * @param string $name The name of the element. * * @return bool true if valid and false otherwise. */
    public static function isElement($name)
    {
        return static::isHtml5Element($name) || static::isMathMLElement($name) || static::isSvgElement($name);
    }

    /** * Get the element mask for the given element name. * * @param string $name The name of the element. * * @return int the element mask. */
    public static function element($name)
    {
        
Home | Imprint | This part of the site doesn't use cookies.