diff options
author | xue <> | 2005-12-07 14:48:54 +0000 |
---|---|---|
committer | xue <> | 2005-12-07 14:48:54 +0000 |
commit | 78d3cebf531c71e77613ca00145454fff317d4ad (patch) | |
tree | 0680fe121a5c90e1c2bb729aaaf295ede5e8612b /framework/Web/UI/THtmlWriter.php | |
parent | d2f675e58b1c42c8960907ee20490a391aec0ecc (diff) |
Diffstat (limited to 'framework/Web/UI/THtmlWriter.php')
-rw-r--r-- | framework/Web/UI/THtmlWriter.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/framework/Web/UI/THtmlWriter.php b/framework/Web/UI/THtmlWriter.php index 36ca6f8b..2b2bbd4f 100644 --- a/framework/Web/UI/THtmlWriter.php +++ b/framework/Web/UI/THtmlWriter.php @@ -185,6 +185,12 @@ class THtmlWriter extends TComponent implements ITextWriter return true;
}
+ public function addAttributes($attrs)
+ {
+ foreach($attrs as $name=>$value)
+ $this->_attributes[$name]=isset(self::$_attrEncode[$name])?THttpUtility::htmlEncode($value):$value;
+ }
+
public function addAttribute($name,$value)
{
$this->_attributes[$name]=isset(self::$_attrEncode[$name])?THttpUtility::htmlEncode($value):$value;
|