public function getPurifiedHTML($key)
{
if (!isset($this->purifier)) {
throw new Exception("HTMLPurifier was not loaded");
}
$val = $this->getValue($key);
if (Inspekt::isArrayOrArrayObject($val)) {
return $this->purifier->purifyArray($val);
} else {
return $this->purifier->purify($val);
}
}