Fix two minor bugs, updating Phorum and removing unused $dir variable.
[htmlpurifier/darkodev.git] / library / HTMLPurifier / AttrTransform / Textarea.php
blob81ac3488ba87520621ec1a42131a9cc0131f2027
1 <?php
3 /**
4 * Sets height/width defaults for <textarea>
5 */
6 class HTMLPurifier_AttrTransform_Textarea extends HTMLPurifier_AttrTransform
9 public function transform($attr, $config, $context) {
10 // Calculated from Firefox
11 if (!isset($attr['cols'])) $attr['cols'] = '22';
12 if (!isset($attr['rows'])) $attr['rows'] = '3';
13 return $attr;
18 // vim: et sw=4 sts=4