diff options
-rw-r--r-- | it_html.class | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/it_html.class b/it_html.class index 8477f64..f7bff0e 100644 --- a/it_html.class +++ b/it_html.class @@ -113,9 +113,9 @@ function configure($p) * Example application code to render page: * echo html(head(...), body(...)); * - * @param any number of text args or array of key => value for $p. - * @param named parameter doctype can override <!DOCTYPE line - * @param named parameter lang contains language + * @param any number of text args or array of key => value pairs + * Defaults for key => value parameters are inherited from the it_html constructor and should be set there. + * The parameters are $p['lang'], $p['htmltype'] and $p['doctype'] */ function html($args) { @@ -272,7 +272,7 @@ function _tag($name, $args) } # Apply a kind of magic... this needs further investigation - if (isset($data) || preg_match('/^(a|div|iframe|script|span|td|textarea)$/i', $name)) + if (isset($data) || preg_match('/^(a|div|iframe|pre|script|span|td|textarea)$/i', $name)) $result .= ">$data</$name>$newline"; elseif ($this->p['htmltype'] == 'html') $result .= ">$newline"; |