1
0
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:
e107steved
2007-01-08 21:11:36 +00:00
parent fab4a3bc10
commit 470499cbc7
2 changed files with 20 additions and 43 deletions

View File

@@ -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>";