parser = $parser; $this->tree_builder = $tree_builder; } function getAttributeString($attrs) { $attrib_str = ''; foreach ( $attrs as $key => $value ) { if (strcasecmp($key, 'runat') == 0) continue; $attrib_str .= ' ' . $key; if (!is_null($value)) { if (strpos($value, '"') === FALSE) $attrib_str .= '="' . $value . '"'; else $attrib_str .= '=\'' . $value . '\''; } } return $attrib_str; } } ?>