public function normalize($content = '')
{
if ($content instanceof ElggEntity) {
$content = (array) $content->toObject();
}
if (is_array($content)) {
foreach ($content as $key => $value) {
$content[$key] = $this->normalize($value);
}
}
return $content;
}