Documentation of new HTML element creation functions ──────────────────────────────────────────────────── Functions defined in src/www/include/html.php → available: always. ‣ Element emission functions (do not echo anything) • string html_eo(string $name, optional(empty) array $attrs) html_eo('b') ⇒ '' html_eo('td', array('colspan' => 2)) ⇒ '' html_eo('div', array('class' => array('ff', 'important'))) ⇒ '
' html_eo('img', array( 'src' => '…', 'ref' => false, 'class' => array(), 'alt' => "", )) ⇒ '' Generate an XHTML E̲lement O̲pen tag for $name, with attributes defined by key/value pairs properly inserted. Attribute values are coerced into strings from integers (by casting) or arrays (by concatenating the array elements with spaces); if the value is === false or an empty array (count($attrs[n]) == 0), the attribute is not output at all, but for empty values it is; see the img example (admittedly bad, you’d use html_e() for "img"). • string html_e(string $name, optional(empty) array $attrs, optional(empty) string $content, optional(true) bool $shortform) html_e('br') ⇒ '
' html_e('a', array('href' => '/foo.php?a=1&b=2'), 'täxt') ⇒ 'täxt' html_e('script', array( 'type' => 'text/javascript', 'src' => '/js/foo.js', ), "", false) ⇒ '' /* needed because