// value for `URI.AllowedSchemes` below
$config->autoFinalize = false;
- $config->set('CSS.AllowedProperties', ['color', 'font-family', 'font-size', 'width']);
- $config->set('CSS.MaxImgLength', null);
- $config->set('HTML.MaxImgLength', null);
+ $config->set('CSS.AllowedProperties', ['color', 'font-family', 'font-size']);
$config->set('HTML.ForbiddenAttributes', ['*@lang', '*@xml:lang']);
$allowedSchemes = $config->get('URI.AllowedSchemes');
*/
protected function setAttributeDefinitions(\HTMLPurifier_Config $config)
{
- //$definition = $config->getCSSDefinition();
- //$definition->info['width'] = new HTMLPurifier_AttrDef_CSS_Percentage(true);
-
$definition = $config->getHTMLDefinition(true);
// <br>