public static function coreHTMLElement($element, $content, array $attrs = []) {

        $template = "<%element%%attributes%>%innerHTML%</%element%>";

        $attributes = trim(StringHelper::parseArray($attrs));
        if (0 < strlen($attributes)) {
            $attributes = " " . $attributes;
        }

        $innerHTML = null !== $content ? trim($content, " ") : "";

        return StringHelper::replace($template, ["%element%", "%attributes%", "%innerHTML%"], [trim($element), $attributes, $innerHTML]);
    }
public static function coreHTMLElement($element, $content, array $attrs = []) {

        $template = "<%element%%attributes%>%innerHTML%</%element%>";

        $attributes = trim(StringHelper::parseArray($attrs));
        if (0 < strlen($attributes)) {
            $attributes = " " . $attributes;
        }

        $innerHTML = null !== $content ? trim($content, " ") : "";

        return StringHelper::replace($template, ["%element%", "%attributes%", "%innerHTML%"], [trim($element), $attributes, $innerHTML]);
    }
public static function coreHTMLElement ( $ element , $ content , array $ attrs = [ ] ) { $ template = "<%element%%attributes%>%innerHTML%</%element%>" ; $ attributes = trim ( StringHelper :: parseArray ( $ attrs ) ) ; if ( 0 < strlen ( $ attributes ) ) { $ attributes = " " . $ attributes ; } $ innerHTML = null !== $ content ? trim ( $ content , " " ) : "" ; return StringHelper :: replace ( $ template , [ "%element%" , "%attributes%" , "%innerHTML%" ] , [ trim ( $ element ) , $ attributes , $ innerHTML ] ) ; }
Displays an HTML element.

@param string $element The object.
@param string $content The content.
@param array $attrs The attributes.
@return string Returns the HTML element.
Displays an HTML element .