i found some problems because its only supposed to remove style tags for e.g
  var %tags = [[]root[][][[[]]
  echo -a Normal: $striptags(%tags)
Normal: root]
it should give [[]root[][][[[]] becasue there arent any style tags in it
sorry i should have been more clear in my first post. i only want to remove the style tags which look like 
[style attributes]some text here[/style]