mirror of
https://github.com/e107inc/e107.git
synced 2025-08-07 07:06:30 +02:00
Simplify things a bit
This commit is contained in:
@@ -1,20 +1,10 @@
|
||||
|
||||
|
||||
/* Tag: [textarea name=name&style=style&row=rows&whatever=whatever]value[/textarea] */
|
||||
|
||||
|
||||
$tastr = "";
|
||||
|
||||
parse_str($parm, $tmp);
|
||||
|
||||
foreach($tmp as $key => $p)
|
||||
{
|
||||
$tastr .= $tp -> toAttribute($key)." = '".$tp -> toAttribute($p)."' ";
|
||||
$tastr .= $tp -> toAttribute($key)." = '".$tp -> toAttribute($p)."' ";
|
||||
}
|
||||
|
||||
|
||||
preg_match ("#\](.*?)\[/textarea#", $full_text, $match);
|
||||
$value = $match[1];
|
||||
|
||||
return "<textarea $tastr>$value</textarea>";
|
||||
|
||||
return "<textarea $tastr>$code_text</textarea>";
|
||||
|
Reference in New Issue
Block a user