$config->
set($key,
$value);
} } } } $config->
set('HTML.AllowedElements',
$allowedElements);
$config->
set('HTML.AllowedAttributes',
$allowedAttributes);
$definition =
$config->
getHTMLDefinition(true
);
if ($definition === null
) { return $config;
} foreach ($customAttributes as $tag =>
$attributes) { foreach ($attributes as $attribute) { $definition->
addAttribute($tag,
$attribute, 'Text'
);
} }