e107inc/e107

View on GitHub
e107_core/bbcodes/textarea.bb

Summary

Maintainability
Test Coverage
//<?
 
/* Tag: [textarea name=name&style=style&row=rows&whatever=whatever]value[/textarea] */

$class = e107::getBB()->getClass('textarea');
$tastr = "";
parse_str($parm, $tmp);

foreach($tmp as $key => $p)
{
  $tastr .= e107::getParser()->toAttribute($key)." = '".e107::getParser()->toAttribute($p)."' ";
}
return "<textarea class='{$class}' $tastr>$code_text</textarea>";