public function tag($name, $content, $htmlOptions = array()) {
        $element = "<$name ";
        foreach ($htmlOptions as $k => $v) {
            $element .= "$k=\"" . self::encode($v) . "\" ";
        }
        return $element . '>' . $content . '</' . $name . '>';
    }
public function tag($name, $content, $htmlOptions = array()) {
        $element = "<$name ";
        foreach ($htmlOptions as $k => $v) {
            $element .= "$k=\"" . self::encode($v) . "\" ";
        }
        return $element . '>' . $content . '</' . $name . '>';
    }
public function tag ( $ name , $ content , $ htmlOptions = array ( ) ) { $ element = "<$name " ; foreach ( $ htmlOptions as $ k => $ v ) { $ element .= "$k=\"" . self :: encode ( $ v ) . "\" " ; } return $ element . '>' . $ content . '</' . $ name . '>' ; }
Generates a HTML element with selected tag, content and options.
@param string $name
@param string $content
@param array $htmlOptions
@return string
Generates a HTML element with selected tag content and options .