Forms implementation for %HTML.Trusted. Some backend changes:
[htmlpurifier/rdancer.git] / library / HTMLPurifier / AttrTransform / Textarea.php
blobc7cc9888affdf7ffb22752e8c6310581880df15a
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;