0
如何在HtmlPurifier中允许“名称”? 我尝试使用像这样:HtmlPurifier - 允许名称属性
config = HTMLPurifier_Config::createDefault();
$config->set('HTML.AllowedAttributes', 'img._src, img.name, img.src,img.alt');
return HtmlPurifier::process($html, $config);
但它不工作?我能怎么做? THX
也是_src标记 –